CORD-1913: Restore execution of custom service save() methods in attics
Change-Id: Ia2ca2eaa6f86208e85feca50c615a3becdb96a99
(cherry picked from commit c168069e446d8cc3ce248d1a2098adbf260a90a5)
diff --git a/xos/attic/cordsubscriberroot_model.py b/xos/attic/cordsubscriberroot_model.py
index 29bef7a..7c7e7b5 100644
--- a/xos/attic/cordsubscriberroot_model.py
+++ b/xos/attic/cordsubscriberroot_model.py
@@ -131,12 +131,15 @@
for vsg in vsgs:
vsg.save()
-def save(self, *args, **kwargs):
+def __xos_save_base(self, *args, **kwargs):
self.validate_unique_service_specific_id(none_okay=True)
if (not hasattr(self, 'caller') or not self.caller.is_admin):
if (self.has_field_changed("service_specific_id")):
raise XOSPermissionDenied("You do not have permission to change service_specific_id")
+
super(CordSubscriberRoot, self).save(*args, **kwargs)
self.invalidate_related_objects()
+ return True # Indicate that we called super.save()
+