I am trying to extend the User Model.

I've created a new app (userprofiles) and added this to my settings.
I've then created the models.py (see below)

At first II tried the following (User, unique=True,
edit_inline=models.TABULAR, num_in_admin=1,min_num_in_admin=1,
max_num_in_admin=1,num_extra_on_change=0)
as parameters on the user field.  This created the inline form in the
admin, under USER but would not save any of the details to the
database.

I've paired the model down to the very basics (as below).  However, now
it doesn't even show up in the Admin.

However, I am not getting any errors.   Any ideas?

from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
    #relations
    user = models.ForeignKey(User,unique=True)
    #attributes
    street_address = models.TextField()
    city_address = models.TextField()
    postcode = models.TextField()
    year_birth=models.IntegerField()
    married_status = models.CharField(maxlength=100)
    acc_number=models.IntegerField()


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to