move routing restrictions setting down

This commit is contained in:
Laura Klünder 2023-12-21 01:22:15 +01:00
parent e2de0e0e4d
commit a4074cee3a

View file

@ -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