migrations run for lyric models; authentication & views & their tests now account more fully for uuid over email as pk

This commit is contained in:
Disco DeDisco
2026-01-30 21:33:30 -05:00
parent f002cc5c84
commit ae63861adb
6 changed files with 60 additions and 10 deletions

View File

@@ -15,9 +15,9 @@ class PasswordlessAuthenticationBackend:
except User.DoesNotExist:
return User.objects.create(email=token.email)
def get_user(self, email):
def get_user(self, user_id):
try:
return User.objects.get(email=email)
return User.objects.get(pk=user_id)
except User.DoesNotExist:
return None # might also just pass (which = return None)
return None # could also pass (which = return None)