From 22da2d4bbedc486f3b265245ba02b5d730ba4b81 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Tue, 14 Dec 2021 13:55:08 +0100 Subject: [PATCH] #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 --- intervention/forms/modalForms.py | 2 +- konova/autocompletes.py | 2 +- konova/settings.py | 4 ++-- locale/de/LC_MESSAGES/django.mo | Bin 28052 -> 28116 bytes locale/de/LC_MESSAGES/django.po | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/intervention/forms/modalForms.py b/intervention/forms/modalForms.py index 36667f89..7adc6864 100644 --- a/intervention/forms/modalForms.py +++ b/intervention/forms/modalForms.py @@ -36,7 +36,7 @@ class ShareModalForm(BaseModalForm): user_select = forms.ModelMultipleChoiceField( label=_("Add user to share with"), 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, queryset=User.objects.all(), widget=autocomplete.ModelSelect2Multiple( diff --git a/konova/autocompletes.py b/konova/autocompletes.py index f0fb0fe0..58844f3e 100644 --- a/konova/autocompletes.py +++ b/konova/autocompletes.py @@ -79,7 +79,7 @@ class ShareUserAutocomplete(Select2QuerySetView): ) if self.q: qs = qs.filter( - username__istartswith=self.q + username=self.q ) return qs diff --git a/konova/settings.py b/konova/settings.py index c80c54fc..b6306e45 100644 --- a/konova/settings.py +++ b/konova/settings.py @@ -51,8 +51,8 @@ PAGE_DEFAULT = 1 # SSO settings SSO_SERVER_BASE = "http://127.0.0.1:8000/" SSO_SERVER = f"{SSO_SERVER_BASE}sso/" -SSO_PRIVATE_KEY = "QuziFeih7U8DZvQQ1riPv2MXz0ZABupHED9wjoqZAqeMQaqkqTfxJDRXgSIyASwJ" -SSO_PUBLIC_KEY = "AGGK7E8eT5X5u2GD38ygGG3GpAefmIldJiiWW7gldRPqCG1CzmUfGdvPSGDbEY2n" +SSO_PRIVATE_KEY = "U7OjCbElNDchUvh9WVzfOfC4juJQC9HGZI9tSdjmeFe0MDTw7BCNBv4MigJ79dlJ" +SSO_PUBLIC_KEY = "PnxIZFewXVoL0FG2wMr3DCGgLCHOwR6JE9GYJCZHazVjlDgOZFl3qiB4dWsAZRF5" # MAPS DEFAULT_LAT = 50.00 diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index bea21be232cddb49fe38ef32b85a9c5e0c0d48ab..94f1f4261103119e00e1404a6d82c66f36b65d81 100644 GIT binary patch delta 4990 zcmXZee^l4i9mnwxC@4QfAbtwS*YP7oz+Z?%Q4s}Alt@!S(A0rKAZ-Fm+46HZnGH{9 zN37IRYt1r`H7A?Sqq&1FH)b@KKQbLPl(T9&JDR%Ct@eCz?;oDWz4!C^-21-o_q|`- zcE#)b6|aNkzU~^wah@ILI79Fr_QQ}2#~Fm-H~RY>lu#ggwyD?FAg4W779a6oQPUz3}#|3hT}Ta1Y0l+ci}^L2!rr6 zD)0*!f?cQpzs3mcMZF)K={im{jYMXT!YQa17NH`oMc#Eb;s`vBTKJ!+jNGx~{U?|O z(=nUzOq`8%=z}Lv>--TF*k{-`k4qzlfjbzB!9O$;r{O^QlQ97E(HG~TGE;(@V5RNX z+viQF_kV%Pk2x`GU<4C-S`p$cz z2{^)pSH%G~rH+z_&0G-^VDtfK%}%#$h@Io{V!) zfo{T?xD&PTRaDKdqc(I475INK90&8U)=9zu)_1aLXrfuDh>KCFTY{SKDOAnYqDs(W zeHHs^irT6#Ab`MY)@yX%5U;wHgltcdYK^OxHAPSWMk2MK3Q3`73<4`G` zhRWC+R7%TG->pGq?rGF_&8Y9TqUL`cwcb8dUj z<2_Ugdr^n6L2Ap!bVhP_M;Bl zY1Dfkqf*?3xn3MH?4qBZ=QwX;U_R#ue~X3q zd#KcXf~w_LsD*B$u8)3S^*j=lnGvYx*{FbL;}C4bID83}sWv|in={BP^GKJNY;0LLPNE0 zM%8==YKQyLAKOuf=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