manually query the site object if it isn't present in the SliceForm's cleaned_data dict
diff --git a/planetstack/core/admin.py b/planetstack/core/admin.py
index 842cd17..34a77c0 100644
--- a/planetstack/core/admin.py
+++ b/planetstack/core/admin.py
@@ -738,6 +738,9 @@
cleaned_data = super(SliceForm, self).clean()
name = cleaned_data.get('name')
site = cleaned_data.get('site')
+ slice_id = self.instance.id
+ if not site and slice_id:
+ site = Slice.objects.get(id=slice_id).site
if (not isinstance(site,Site)):
# previous code indicates 'site' could be a site_id and not a site?
site = Slice.objects.get(id=site.id)