Refactored some views to make it more consistent with Django internal namings

This commit is contained in:
tomtom5152
2014-11-05 16:57:31 +00:00
parent 340db92a1f
commit e3f35fec6b
3 changed files with 14 additions and 9 deletions

View File

@@ -26,7 +26,8 @@ class CloseModal(generic.TemplateView):
from django.contrib import messages
return {'messages', messages.get_messages(self.request)}
class PersonIndex(generic.ListView):
class PersonList(generic.ListView):
model = models.Person
paginate_by = 20
@@ -60,7 +61,8 @@ class PersonUpdate(generic.UpdateView):
'pk': self.object.pk,
})
class OrganisationIndex(generic.ListView):
class OrganisationList(generic.ListView):
model = models.Organisation
paginate_by = 20