mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
* New "import data" feature (only supports mailboxes for now)
* Some javascript cleanup into the admin. application see #191
This commit is contained in:
@@ -199,3 +199,13 @@ class DomainAdminForm(forms.Form):
|
||||
forms.ChoiceField(label=_("User"), required=True,
|
||||
choices=[("", _("Empty"))],
|
||||
help_text=_("Select a user in the list"))
|
||||
|
||||
class ImportDataForm(forms.Form):
|
||||
sourcefile = forms.FileField(label=_("Select a file"))
|
||||
sepcar = forms.CharField(label=_("Separator"), max_length=1, required=False)
|
||||
|
||||
def clean_sepcar(self):
|
||||
if self.cleaned_data["sepcar"] == "":
|
||||
return ";"
|
||||
return self.cleaned_data["sepcar"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user