From 89e30a1d3a5844051fbbd20631fdc4caf3fe1049 Mon Sep 17 00:00:00 2001 From: tomtom5152 Date: Wed, 5 Nov 2014 15:53:54 +0000 Subject: [PATCH] Renamed model variable to be compliant with Django standards --- RIGS/importer.py | 2 +- RIGS/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/importer.py b/RIGS/importer.py index 7a68ef00..7a2f12c3 100644 --- a/RIGS/importer.py +++ b/RIGS/importer.py @@ -63,7 +63,7 @@ def import_organisations(): object, created = models.Organisation.objects.get_or_create(pk=row[0], name=row[1], phone=row[2], address=row[3], - unionAccount=row[4], notes=notes) + union_account=row[4], notes=notes) if created: print("Created: " + object.__unicode__()) with transaction.atomic(), reversion.create_revision(): diff --git a/RIGS/models.py b/RIGS/models.py index b41f8a33..417d8a54 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -53,7 +53,7 @@ class Organisation(models.Model, RevisionMixin): address = 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): string = self.name