# HG changeset patch # User Pawel Solyga # Date 1227393914 0 # Node ID 96d9655a7538ac6278295dede2328e0f1d2fe328 # Parent 6713617751b4024c5fddb268e47baa2993c6503f Remove inheritance_line from Form meta class excludes in all currently used forms. Patch by: Pawel Solyga, Sverre Rabbelier diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/document.py --- a/app/soc/views/models/document.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/document.py Sat Nov 22 22:45:14 2008 +0000 @@ -52,7 +52,7 @@ model = soc.models.document.Document #: list of model fields which will *not* be gathered by the form - exclude = ['inheritance_line', 'author', 'created', 'modified', 'scope'] + exclude = ['author', 'created', 'modified', 'scope'] def clean_scope_path(self): scope_path = self.cleaned_data.get('scope_path') diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/host.py --- a/app/soc/views/models/host.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/host.py Sat Nov 22 22:45:14 2008 +0000 @@ -47,7 +47,7 @@ model = soc.models.host.Host #: list of model fields which will *not* be gathered by the form - exclude = ['inheritance_line', 'scope'] + exclude = ['scope'] def clean_empty(self, field): data = self.cleaned_data.get(field) diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/presence.py --- a/app/soc/views/models/presence.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/presence.py Sat Nov 22 22:45:14 2008 +0000 @@ -85,7 +85,7 @@ model = soc.models.presence.Presence #: list of model fields which will *not* be gathered by the form - exclude = ['inheritance_line', 'home', 'scope'] + exclude = ['home', 'scope'] class EditForm(CreateForm): diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/request.py --- a/app/soc/views/models/request.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/request.py Sat Nov 22 22:45:14 2008 +0000 @@ -54,7 +54,7 @@ model = soc.models.request.Request #: list of model fields which will *not* be gathered by the form - exclude = ['inheritance_line', 'scope', 'scope_path', 'link_id', 'role', 'declined'] + exclude = ['scope', 'scope_path', 'link_id', 'role', 'declined'] role = forms.CharField(widget=helper.widgets.ReadOnlyInput()) diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/role.py --- a/app/soc/views/models/role.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/role.py Sat Nov 22 22:45:14 2008 +0000 @@ -54,7 +54,7 @@ #: Exclude pretty much everything, model=None would #: also remove the help text etc. - exclude = ['inheritance_line', 'requester', 'to', 'role', + exclude = ['requester', 'to', 'role', 'accepted', 'declined'] requester = forms.CharField(widget=helper.widgets.ReadOnlyInput()) diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/site.py --- a/app/soc/views/models/site.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/site.py Sat Nov 22 22:45:14 2008 +0000 @@ -53,7 +53,7 @@ model = soc.models.site.Site #: list of model fields which will *not* be gathered by the form - exclude = ['inheritance_line', 'home', 'scope', 'scope_path', 'link_id'] + exclude = ['home', 'scope', 'scope_path', 'link_id'] scope_path = forms.CharField(widget=forms.HiddenInput) diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/sponsor.py --- a/app/soc/views/models/sponsor.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/sponsor.py Sat Nov 22 22:45:14 2008 +0000 @@ -52,7 +52,7 @@ model = soc.models.sponsor.Sponsor #: list of model fields which will *not* be gathered by the form - exclude = ['scope', 'scope_path', 'founder', 'inheritance_line', 'home'] + exclude = ['scope', 'scope_path', 'founder', 'home'] # TODO(pawel.solyga): write validation functions for other fields def clean_link_id(self): diff -r 6713617751b4 -r 96d9655a7538 app/soc/views/models/user.py --- a/app/soc/views/models/user.py Sat Nov 22 22:44:02 2008 +0000 +++ b/app/soc/views/models/user.py Sat Nov 22 22:45:14 2008 +0000 @@ -120,8 +120,7 @@ model = soc.models.user.User #: list of model fields which will *not* be gathered by the form - exclude = ['account', 'former_accounts', 'is_developer', - 'inheritance_line'] + exclude = ['account', 'former_accounts', 'is_developer'] def clean_link_id(self): link_id = self.cleaned_data.get('link_id')