app/soc/views/models/site.py
changeset 901 d580a057103d
parent 858 e79e7a22326f
child 903 7110fc489fd0
--- a/app/soc/views/models/site.py	Thu Jan 22 16:03:17 2009 +0000
+++ b/app/soc/views/models/site.py	Thu Jan 22 16:04:48 2009 +0000
@@ -34,33 +34,6 @@
 import soc.logic.dicts
 
 
-class CreateForm(presence.SettingsValidationForm):
-  """Django form displayed when creating or editing Site Settings.
-  """
-
-  class Meta:
-    """Inner Meta class that defines some behavior for the form.
-    """
-    #: db.Model subclass for which the form will gather information
-    model = soc.models.site.Site
-
-    #: list of model fields which will *not* be gathered by the form
-    exclude = ['scope', 'scope_path', 'link_id',
-      # TODO(tlarsen): this needs to be enabled once a button to a list
-      #   selection "interstitial" page is implemented, see:
-      #     http://code.google.com/p/soc/issues/detail?id=151
-      'home', 'tos']
-
-  link_id = forms.CharField(widget=forms.HiddenInput)
-
-
-class EditForm(CreateForm):
-  """Django form displayed a Document is edited.
-  """
-
-  pass
-
-
 class View(presence.View):
   """View methods for the Document model.
   """
@@ -87,9 +60,6 @@
     new_params['url_name'] = "site/settings"
     new_params['module_name'] = "site"
 
-    new_params['edit_form'] = EditForm
-    new_params['create_form'] = CreateForm
-
     new_params['sidebar_defaults'] = [('/%s/edit', 'Edit %(name)s', 'edit')]
     new_params['sidebar_heading'] = new_params['name_short']