Remove inheritance_line from Form meta class excludes in all currently used forms.
Patch by: Pawel Solyga, Sverre Rabbelier
--- 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')
--- 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)
--- 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):
--- 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())
--- 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())
--- 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)
--- 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):
--- 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')