From 77a0f47a7b3bfc8cf4abef63f061bb8b11383f2e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 27 Jun 2019 19:33:35 +0200 Subject: Merge: better layout - fix max page --- archaeological_warehouse/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archaeological_warehouse') diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 3dd3f08e8..a93a0917d 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -148,6 +148,7 @@ class Warehouse(Address, DocumentItem, GeoItem, QRCodeItem, DashboardFormItem, dct_orga["organization_type"] = orga_type dct_orga["name"] = self.name orga = Organization.objects.create(**dct_orga) + orga.save() # force duplicates self.organization = orga for k in Address.FIELDS: if k == "alt_address_is_prefered": -- cgit v1.2.3