From df2eb6b83d476c6583a78a192c826554410aa5d4 Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Mon, 24 Mar 2025 09:36:20 +0100 Subject: [PATCH] FINSUP-35, Fixed django ORM bug for not having primary key for a table --- sage_validation/file_validator/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sage_validation/file_validator/models.py b/sage_validation/file_validator/models.py index 99c2e0f..c2bd157 100644 --- a/sage_validation/file_validator/models.py +++ b/sage_validation/file_validator/models.py @@ -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) -- GitLab