2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 10:07:25 +00:00

caves, scans, survex work in databaseRest

This commit is contained in:
Philip Sargent
2020-06-19 00:26:15 +01:00
parent 4a51de95c4
commit 2c469718f6
2 changed files with 14 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ def save_carefully(objectType, lookupAttribs={}, nonLookupAttribs={}):
defined in core.models.TroggleModel.
"""
print(" !! - SAVE CAREFULLY Django 1.11.29 ", objectType)
instance, created = objectType.objects.get_or_create(defaults=nonLookupAttribs, **lookupAttribs)
if not created and not instance.new_since_parsing: