diff options
author | Anuja <anujag@anujag-Latitude-D630.(none)> | 2012-04-26 15:45:13 +0530 |
---|---|---|
committer | Anuja <anujag@anujag-Latitude-D630.(none)> | 2012-04-26 15:45:13 +0530 |
commit | eebf47e459a51288494ca2a3c8ae19a0ffbf4eac (patch) | |
tree | d2b613abb61be9567b3fc703ad798177f9b605f0 /gstudio/admin/forms.py | |
parent | 546cfb06395189d476c53c1f059013dc8d51a8b8 (diff) | |
download | gnowsys-eebf47e459a51288494ca2a3c8ae19a0ffbf4eac.tar.gz |
Modified Relation and Attribute admin forms
Diffstat (limited to 'gstudio/admin/forms.py')
-rw-r--r-- | gstudio/admin/forms.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gstudio/admin/forms.py b/gstudio/admin/forms.py index 37b578c..a2415c1 100644 --- a/gstudio/admin/forms.py +++ b/gstudio/admin/forms.py @@ -154,7 +154,7 @@ class RelationtypeAdminForm(forms.ModelForm): super(RelationtypeAdminForm, self).__init__(*args, **kwargs) prior = ManyToManyRel(Nodetype, 'id') post = ManyToManyRel(Nodetype, 'id') - + self.fields['priornodes'].widget = RelatedFieldWidgetWrapper( @@ -207,18 +207,6 @@ class RelationAdminForm(forms.ModelForm): AppNodeList = AppNode.objects.all() return AppNodeList - - - - - - - - - - - - class Meta: @@ -289,7 +277,7 @@ class AttributetypeAdminForm(forms.ModelForm): super(AttributetypeAdminForm, self).__init__(*args, **kwargs) prior = ManyToManyRel(Nodetype, 'id') post = ManyToManyRel(Nodetype, 'id') - + self.fields['sites'].initial = [Site.objects.get_current()] self.fields['priornodes'].widget = RelatedFieldWidgetWrapper( self.fields['priornodes'].widget, prior, self.admin_site) |