I'm extending a the auth.models.User
but I'm having troubles to implement the __unicode__
methode.
from django.db import models
from django.contrib.auth.models import User
class Artist(models.Model):
user = models.OneToOneField(User)
city = models.CharField(max_length=30)
bio = models.CharField(max_length=500)
Now how to I access the user
fields as I want to return the name for Django Admin.