make XOS rebuild if a service controller is changed
diff --git a/xos/core/models/service.py b/xos/core/models/service.py
index a0791f7..e825933 100644
--- a/xos/core/models/service.py
+++ b/xos/core/models/service.py
@@ -72,6 +72,14 @@
def __unicode__(self): return u'%s' % (self.name)
+ def save(self, *args, **kwargs):
+ super(ServiceController, self).save(*args, **kwargs)
+
+ if self.xos:
+ # force XOS to rebuild
+ # XXX somewhat hackish XXX
+ self.xos.save(update_fields=["updated"])
+
class ServiceControllerResource(PlCoreBase):
KIND_CHOICES = (('models', 'Models'),
('admin', 'Admin'),