wip: UI refactoring

* username max_lenght increased
* Fixed an error into the creation wizard
* The quarantine poller interval is now customizable

see #204
This commit is contained in:
Antoine Nguyen
2012-04-24 12:26:07 +02:00
parent ddf3c2dad4
commit 26dfcef9ef
5 changed files with 64 additions and 39 deletions
+4 -2
View File
@@ -209,13 +209,15 @@ class ImportDataForm(forms.Form):
return str(self.cleaned_data["sepcar"])
class AccountFormGeneral(forms.ModelForm):
username = forms.CharField(max_length=254)
role = forms.ChoiceField(
choices=[('', ugettext_noop("Choose"))]
choices=[('', ugettext_noop("Choose"))],
help_text=ugettext_noop("What level of permission this user will have")
)
class Meta:
model = User
fields = ("username", "first_name", "last_name", "role", "is_active")
fields = ("first_name", "last_name", "role", "is_active")
def __init__(self, user, *args, **kwargs):
super(AccountFormGeneral, self).__init__(*args, **kwargs)