Using the following code I am only getting 1 object returned in the
admin list for UserProfile.
So if I have 5 objects - I get 4 blank lines and then 1 line with the
listing.
class UserProfile(models.Model):
user=models.OneToOneField(User)
def __str__(self):
return "%s %s" % (self.user.first_name, self.user.last_name)
class Admin:
pass
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---