commit | dd06ca86db1bb06ea5a4a6296a448b34301ed7a5 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Wed Mar 26 08:10:14 2014 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Wed Mar 26 08:10:14 2014 -0400 |
tree | 700844287a5f6abe763b99e099fc2a195e7c0caa | |
parent | 7c972e5a58c477739a021b518ec723c53e9fadfa [diff] |
fix attribute error
diff --git a/planetstack/core/admin.py b/planetstack/core/admin.py index 2a77f3f..3875477 100644 --- a/planetstack/core/admin.py +++ b/planetstack/core/admin.py
@@ -458,6 +458,7 @@ super(DeploymentAdminForm, self).__init__(*args, **kwargs) if self.instance and self.instance.pk: + self.fields['sites'].initial = self.instance.site_set.all() self.fields['sites'].initial = self.instance.sites.all() def save(self, commit=True):