null=True, blank=True
class UserProfile(models.Model):
# This line is required. Links UserProfile to a User model instance.
user = models.OneToOneField(User)
# The additional attributes we wish to include.
website = models.URLField(blank=True)
# Override the __unicode__() method to return out something meaningful!
def __str__(self):
return self.user.username