Commit 2c2c3413 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

RegisteredUsers now refer to username only, not User objects.

parent d70ff4d8
......@@ -35,9 +35,13 @@ class URL( models.Model ):
return None
class RegisteredUser( models.Model ):
user = models.ForeignKey( User, primary_key = True )
username = models.CharField(
blank = False,
max_length = 30,
primary_key = True
)
description = models.TextField( blank=True )
def __unicode__(self):
return '<Registered User: %s>' % self.user.username
return '<Registered User: %s>' % self.username
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