]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/exporter/forms.py
Pagination updates
[osqa.git] / forum_modules / exporter / forms.py
1 from django import forms
2 from django.utils.translation import ugettext as _
3
4 FORMAT_CHOICES = (
5 ('tgz', _('tar.gz')),
6 ('zip', _('zip'))
7 )
8
9 class ExporterForm(forms.Form):
10     file_format = forms.ChoiceField(widget=forms.Select, choices=FORMAT_CHOICES, initial='zip',
11                                        label=_('File format'), help_text=_("File format of the compressed backup"), required=True)
12     anon_data = forms.BooleanField(label=_('Anonymized data'), help_text=_('Don\'t export user data and make all content anonymous'), required=False)
13     uplodaded_files = forms.BooleanField(label=_('Uploaded files'), help_text=_('Include uploaded files in the backup'), required=False, initial=True)
14     import_skins_folder = forms.BooleanField(label=_('Skins folder'), help_text=_('Include skins folder in the backup'), required=False, initial=False)
15