Added list view & more stuff

This commit is contained in:
David Taylor
2015-08-08 16:52:15 +03:00
committed by Tom Price
parent 153dacbf22
commit 0e42999d3e
6 changed files with 105 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class Schema(models.Model, RevisionMixin):
get_latest_by = 'start_at'
def __str__(self):
return self.comment + " " + str(self.start_at)
return self.schema_type.name + "|" + self.comment + " " + str(self.start_at)
@reversion.register
class Form(models.Model, RevisionMixin):
@@ -52,5 +52,6 @@ class Form(models.Model, RevisionMixin):
permissions = (
('create_form', 'Can complete a form'),
('update_form', 'Can change a form'),
('view_form', 'Can view forms'),
)