Organisational import

This commit is contained in:
Tom Price
2014-11-04 03:39:11 +00:00
parent a7384c1dd2
commit e5d89068fb
6 changed files with 755 additions and 5 deletions

View File

@@ -44,3 +44,19 @@ class Person(models.Model, RevisionMixin):
string += "*"
return string
@reversion.register
class Organisation(models.Model, RevisionMixin):
name = models.CharField(max_length=50)
phone = models.CharField(max_length=15, blank=True, null=True)
email = models.EmailField(blank=True, null=True)
address = models.TextField(blank=True, null=True)
notes = models.TextField(blank=True, null=True)
unionAccount = models.BooleanField(default=False)
def __unicode__(self):
string = self.name
if len(self.notes) > 0:
string += "*"
return string