Commit 6fc7b8be authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Updated all references to RegisteredUser to use its username field.

parent d064ffd1
......@@ -5,7 +5,7 @@ register = template.Library()
@register.filter
def is_registered( user ):
try:
registered = RegisteredUser.objects.get( user=user )
registered = RegisteredUser.objects.get( username=user.username )
return True
except RegisteredUser.DoesNotExist:
return False
......@@ -10,7 +10,7 @@ from django.shortcuts import render, get_object_or_404, redirect
def is_registered( user ):
try:
registered = RegisteredUser.objects.get( user=user )
registered = RegisteredUser.objects.get( username=user.username )
return True
except RegisteredUser.DoesNotExist:
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment