app/soc/views/models/site_settings.py
changeset 512 aae25d2b4464
parent 507 3603fdafabf7
child 513 3c1e16637ad7
equal deleted inserted replaced
511:52557918ec8f 512:aae25d2b4464
    50     """
    50     """
    51     #: db.Model subclass for which the form will gather information
    51     #: db.Model subclass for which the form will gather information
    52     model = soc.models.site_settings.SiteSettings
    52     model = soc.models.site_settings.SiteSettings
    53 
    53 
    54     #: list of model fields which will *not* be gathered by the form
    54     #: list of model fields which will *not* be gathered by the form
    55     exclude = ['inheritance_line', 'home', 'partial_path', 'link_name']
    55     exclude = ['inheritance_line', 'home', 'partial_path', 'link_id']
    56 
    56 
    57   partial_path = forms.CharField(widget=forms.HiddenInput)
    57   partial_path = forms.CharField(widget=forms.HiddenInput)
    58 
    58 
    59   link_name = forms.CharField(widget=forms.HiddenInput)
    59   link_id = forms.CharField(widget=forms.HiddenInput)
    60 
    60 
    61 
    61 
    62 class EditForm(CreateForm):
    62 class EditForm(CreateForm):
    63   """Django form displayed a Document is edited.
    63   """Django form displayed a Document is edited.
    64   """
    64   """