Mercurial > personas_backend
changeset 181:8b9d37988100
The developer agreement should show up on the edit page now, for normal users.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 16 Apr 2008 19:51:57 -0700 |
parents | 7a6e0966068a |
children | f1a9f5f820d7 |
files | personasbackend/personas/forms.py |
diffstat | 1 files changed, 11 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/personasbackend/personas/forms.py Wed Apr 16 19:48:35 2008 -0700 +++ b/personasbackend/personas/forms.py Wed Apr 16 19:51:57 2008 -0700 @@ -42,14 +42,6 @@ class AdminPersonaForm( BasePersonaForm ): pass -class UserPersonaForm( BasePersonaForm ): - class Meta: - model = BasePersonaForm.Meta.model - exclude = BasePersonaForm.Meta.exclude + ["status"] - -class EditPersonaForm( UserPersonaForm ): - pass - DEVELOPER_AGREEMENT = """ <p>By uploading your Persona to this site, you agree that the following are true:</p> @@ -73,7 +65,11 @@ </ul> """ -class NewPersonaForm( UserPersonaForm ): +class UserPersonaForm( BasePersonaForm ): + class Meta: + model = BasePersonaForm.Meta.model + exclude = BasePersonaForm.Meta.exclude + ["status"] + agree_to_terms = forms.BooleanField( label = "I have read and accept the developer agreement.", # TODO: setting required to True doesn't seem to have any effect, @@ -92,3 +88,9 @@ ) return self.cleaned_data + +class EditPersonaForm( UserPersonaForm ): + pass + +class NewPersonaForm( UserPersonaForm ): + pass