Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Username validation #11739

Merged
2 changes: 1 addition & 1 deletion kolibri/core/device/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def create(self, validated_data): # noqa C901
# We've imported a facility if the username exists
try:
superuser = FacilityUser.objects.get(
username=superuser_data["username"]
username__iexact=superuser_data["username"]
)
except FacilityUser.DoesNotExist:
try:
Expand Down