Skip to content
Snippets Groups Projects
Commit df2eb6b8 authored by Neda Moeini's avatar Neda Moeini
Browse files

FINSUP-35, Fixed django ORM bug for not having primary key for a table

parent ff8cc465
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ class MeoNominal(models.Model):
class MeoValidSageAccounts(models.Model):
"""View for MEO valid Sage accounts."""
id = models.UUIDField(db_column="ID", primary_key=True)
account_name = models.CharField(db_column="AccountName", max_length=60)
account_number = models.CharField(db_column="AccountNumber", max_length=8, blank=True, null=True)
account_cost_centre = models.CharField(db_column="AccountCostCentre", max_length=3, blank=True, null=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment