move routing restrictions setting down
This commit is contained in:
parent
e2de0e0e4d
commit
a4074cee3a
1 changed files with 6 additions and 5 deletions
|
@ -39,11 +39,6 @@ class RouteOptions(models.Model):
|
|||
choices=(('slow', _('slow')), ('default', _('default')), ('fast', _('fast'))),
|
||||
initial='default'
|
||||
)
|
||||
fields['restrictions'] = forms.ChoiceField(
|
||||
label=_('Access restrictions'),
|
||||
choices=(('avoid', _('avoid')), ('normal', _('use normally')), ('prefer', _('prefer'))),
|
||||
initial='normal'
|
||||
)
|
||||
|
||||
for waytype in WayType.objects.all():
|
||||
choices = []
|
||||
|
@ -60,6 +55,12 @@ class RouteOptions(models.Model):
|
|||
initial='allow'
|
||||
)
|
||||
|
||||
fields['restrictions'] = forms.ChoiceField(
|
||||
label=_('Access restrictions'),
|
||||
choices=(('avoid', _('avoid')), ('normal', _('use normally')), ('prefer', _('prefer'))),
|
||||
initial='normal'
|
||||
)
|
||||
|
||||
return fields
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue