equal
deleted
inserted
replaced
43 #: db.Model subclass for which the form will gather information |
43 #: db.Model subclass for which the form will gather information |
44 model = soc.models.site.Site |
44 model = soc.models.site.Site |
45 |
45 |
46 #: list of model fields which will *not* be gathered by the form |
46 #: list of model fields which will *not* be gathered by the form |
47 exclude = ['home', 'scope', 'scope_path', 'link_id'] |
47 exclude = ['home', 'scope', 'scope_path', 'link_id'] |
48 |
|
49 scope_path = forms.CharField(widget=forms.HiddenInput) |
|
50 |
48 |
51 link_id = forms.CharField(widget=forms.HiddenInput) |
49 link_id = forms.CharField(widget=forms.HiddenInput) |
52 |
50 |
53 |
51 |
54 class EditForm(CreateForm): |
52 class EditForm(CreateForm): |
99 |
97 |
100 page_name = "Home Page" |
98 page_name = "Home Page" |
101 patterns += [(r'^$', 'soc.views.models.%(module_name)s.main_public', |
99 patterns += [(r'^$', 'soc.views.models.%(module_name)s.main_public', |
102 page_name)] |
100 page_name)] |
103 |
101 |
104 page_name = "Edit Site Settings" |
102 page_name = "Edit Site" |
105 patterns += [(r'^%(url_name)s/edit$', |
103 patterns += [(r'^%(url_name)s/edit$', |
106 'soc.views.models.%(module_name)s.main_edit', |
104 'soc.views.models.%(module_name)s.main_edit', |
107 page_name)] |
105 page_name)] |
108 |
106 |
109 new_params['extra_django_patterns'] = patterns |
107 new_params['extra_django_patterns'] = patterns |