#48 Changes autocomplete
* changes the autocomplete route for user retrieving from _istartswith to full qualified check * extends the help text for form to inform about full qualified username needed * updates translation
This commit is contained in:
parent
59d8608830
commit
22da2d4bbe
@ -36,7 +36,7 @@ class ShareModalForm(BaseModalForm):
|
|||||||
user_select = forms.ModelMultipleChoiceField(
|
user_select = forms.ModelMultipleChoiceField(
|
||||||
label=_("Add user to share with"),
|
label=_("Add user to share with"),
|
||||||
label_suffix="",
|
label_suffix="",
|
||||||
help_text=_("Multiple selection possible - You can only select users which do not already have access"),
|
help_text=_("Multiple selection possible - You can only select users which do not already have access. Enter the full username."),
|
||||||
required=False,
|
required=False,
|
||||||
queryset=User.objects.all(),
|
queryset=User.objects.all(),
|
||||||
widget=autocomplete.ModelSelect2Multiple(
|
widget=autocomplete.ModelSelect2Multiple(
|
||||||
|
@ -79,7 +79,7 @@ class ShareUserAutocomplete(Select2QuerySetView):
|
|||||||
)
|
)
|
||||||
if self.q:
|
if self.q:
|
||||||
qs = qs.filter(
|
qs = qs.filter(
|
||||||
username__istartswith=self.q
|
username=self.q
|
||||||
)
|
)
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ PAGE_DEFAULT = 1
|
|||||||
# SSO settings
|
# SSO settings
|
||||||
SSO_SERVER_BASE = "http://127.0.0.1:8000/"
|
SSO_SERVER_BASE = "http://127.0.0.1:8000/"
|
||||||
SSO_SERVER = f"{SSO_SERVER_BASE}sso/"
|
SSO_SERVER = f"{SSO_SERVER_BASE}sso/"
|
||||||
SSO_PRIVATE_KEY = "QuziFeih7U8DZvQQ1riPv2MXz0ZABupHED9wjoqZAqeMQaqkqTfxJDRXgSIyASwJ"
|
SSO_PRIVATE_KEY = "U7OjCbElNDchUvh9WVzfOfC4juJQC9HGZI9tSdjmeFe0MDTw7BCNBv4MigJ79dlJ"
|
||||||
SSO_PUBLIC_KEY = "AGGK7E8eT5X5u2GD38ygGG3GpAefmIldJiiWW7gldRPqCG1CzmUfGdvPSGDbEY2n"
|
SSO_PUBLIC_KEY = "PnxIZFewXVoL0FG2wMr3DCGgLCHOwR6JE9GYJCZHazVjlDgOZFl3qiB4dWsAZRF5"
|
||||||
|
|
||||||
# MAPS
|
# MAPS
|
||||||
DEFAULT_LAT = 50.00
|
DEFAULT_LAT = 50.00
|
||||||
|
Binary file not shown.
@ -1289,10 +1289,10 @@ msgstr "Nutzer direkt hinzufügen"
|
|||||||
#: intervention/forms/modalForms.py:39
|
#: intervention/forms/modalForms.py:39
|
||||||
msgid ""
|
msgid ""
|
||||||
"Multiple selection possible - You can only select users which do not already "
|
"Multiple selection possible - You can only select users which do not already "
|
||||||
"have access"
|
"have access. Enter the full username."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Mehrfachauswahl möglich - Sie können nur Nutzer wählen, für die der Eintrag "
|
"Mehrfachauswahl möglich - Sie können nur Nutzer wählen, für die der Eintrag "
|
||||||
"noch nicht freigegeben wurde"
|
"noch nicht freigegeben wurde. Geben Sie den ganzen Nutzernamen an."
|
||||||
|
|
||||||
#: intervention/forms/modalForms.py:55
|
#: intervention/forms/modalForms.py:55
|
||||||
msgid "Remove check to remove access for this user"
|
msgid "Remove check to remove access for this user"
|
||||||
|
Loading…
Reference in New Issue
Block a user