mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Renamed model variable to be compliant with Django standards
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user