Updates to person model. Removed comments for now in favour of a simple notes section that can be easily modified as a text field. Will look at introducing this again in the future.

This commit is contained in:
tomtom5152
2014-10-31 02:23:20 +00:00
parent c39504a4ce
commit 2a0a223902
9 changed files with 121 additions and 21 deletions

View File

@@ -12,6 +12,18 @@ def login(request, **kwargs):
from django.contrib.auth.views import login
return login(request)
"""
Called from a modal window (e.g. when an item is submitted to an event/invoice).
May optionally also include some javascript in a success message to cause a load of
the new information onto the page.
"""
class CloseModal(generic.TemplateView):
template_name = 'closemodal.html'
def get_context_data(self, **kwargs):
from django.contrib import messages
return {'messages', messages.get_messages(self.request)}
class PersonIndex(generic.ListView):
model = models.Person