mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Fix SearchForm field label translation
This commit is contained in:
parent
2388354936
commit
91d2081c4f
@ -1,7 +1,7 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from netbox.search import LookupTypes
|
from netbox.search import LookupTypes
|
||||||
from netbox.search.backends import search_backend
|
from netbox.search.backends import search_backend
|
||||||
@ -36,7 +36,8 @@ class SearchForm(forms.Form):
|
|||||||
lookup = forms.ChoiceField(
|
lookup = forms.ChoiceField(
|
||||||
choices=LOOKUP_CHOICES,
|
choices=LOOKUP_CHOICES,
|
||||||
initial=LookupTypes.PARTIAL,
|
initial=LookupTypes.PARTIAL,
|
||||||
required=False
|
required=False,
|
||||||
|
label=_('Lookup')
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user