Hide the 'scope' property from forms for now, since this is really supposed
to be set by "Role context" as determined by logic code in the controller.
Patch by: Todd Larsen
--- a/app/soc/views/models/document.py Sat Nov 22 09:49:13 2008 +0000
+++ b/app/soc/views/models/document.py Sat Nov 22 10:06:03 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']
+ exclude = ['inheritance_line', '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 09:49:13 2008 +0000
+++ b/app/soc/views/models/host.py Sat Nov 22 10:06:03 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']
+ exclude = ['inheritance_line', 'scope']
def clean_empty(self, field):
data = self.cleaned_data.get(field)
--- a/app/soc/views/models/presence.py Sat Nov 22 09:49:13 2008 +0000
+++ b/app/soc/views/models/presence.py Sat Nov 22 10:06:03 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']
+ exclude = ['inheritance_line', 'home', 'scope']
class EditForm(CreateForm):