Renamed model variable to be compliant with Django standards

This commit is contained in:
tomtom5152
2014-11-05 15:53:54 +00:00
parent 60f8694c0c
commit 89e30a1d3a
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ def import_organisations():
object, created = models.Organisation.objects.get_or_create(pk=row[0], name=row[1], phone=row[2], object, created = models.Organisation.objects.get_or_create(pk=row[0], name=row[1], phone=row[2],
address=row[3], address=row[3],
unionAccount=row[4], notes=notes) union_account=row[4], notes=notes)
if created: if created:
print("Created: " + object.__unicode__()) print("Created: " + object.__unicode__())
with transaction.atomic(), reversion.create_revision(): with transaction.atomic(), reversion.create_revision():

View File

@@ -53,7 +53,7 @@ class Organisation(models.Model, RevisionMixin):
address = models.TextField(blank=True, null=True) address = models.TextField(blank=True, null=True)
notes = models.TextField(blank=True, null=True) notes = models.TextField(blank=True, null=True)
unionAccount = models.BooleanField(default=False) union_account = models.BooleanField(default=False)
def __unicode__(self): def __unicode__(self):
string = self.name string = self.name