def setup(self):
    helper = FormHelper()
    helper.form_tag = False
    helper.include_media = False
    self.helper = helper
    self.id = self.cleaned_data['id']
    self.title = (self.cleaned_data['title'] or self.base_title)
    if (not (self.user.is_superuser or self.has_perm())):
        raise PermissionDenied
def setup(self):
    helper = FormHelper()
    helper.form_tag = False
    helper.include_media = False
    self.helper = helper
    self.id = self.cleaned_data['id']
    self.title = (self.cleaned_data['title'] or self.base_title)
    if (not (self.user.is_superuser or self.has_perm())):
        raise PermissionDenied