equal
deleted
inserted
replaced
45 #: list of model fields which will *not* be gathered by the form |
45 #: list of model fields which will *not* be gathered by the form |
46 exclude = ['inheritance_line', 'home'] |
46 exclude = ['inheritance_line', 'home'] |
47 |
47 |
48 |
48 |
49 @decorators.view |
49 @decorators.view |
50 def edit(request, page_name=None, partial_path=None, link_name=None, |
50 def edit(request, page_name=None, partial_path=None, link_id=None, |
51 logic=models.site_settings.logic, |
51 logic=models.site_settings.logic, |
52 settings_form_class=SiteSettingsForm, |
52 settings_form_class=SiteSettingsForm, |
53 template=settings_views.DEF_HOME_EDIT_TMPL): |
53 template=settings_views.DEF_HOME_EDIT_TMPL): |
54 """View for authorized User to edit contents of a Site Settings page. |
54 """View for authorized User to edit contents of a Site Settings page. |
55 |
55 |
63 |
63 |
64 Returns: |
64 Returns: |
65 A subclass of django.http.HttpResponse with generated template. |
65 A subclass of django.http.HttpResponse with generated template. |
66 """ |
66 """ |
67 return settings_views.edit(request, page_name=page_name, partial_path=partial_path, |
67 return settings_views.edit(request, page_name=page_name, partial_path=partial_path, |
68 link_name=link_name, logic=logic, |
68 link_id=link_id, logic=logic, |
69 settings_form_class=settings_form_class, |
69 settings_form_class=settings_form_class, |
70 template=template) |
70 template=template) |
71 |
71 |