I moved to creating the model with a OneToOne relationship rather than
a foreign key and have it got it to work. Not sure why I was having
problems as Foreign Key
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
Do you also have lines like this?
class Admin:
pass
http://www.djangoproject.com/documentation/tutorial2/
Paul Prescod
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
On Mon, 2006-10-23 at 16:38 +, rp wrote:
>
> These posts are very helpful:
>
> http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model
>
> http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration
>
> Both suggest using OneToOneField instead of ForeignKey:
>
These posts are very helpful:
http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model
http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration
Both suggest using OneToOneField instead of ForeignKey:
user = models.OneToOneField(User)
instead of:
user = model
4 matches
Mail list logo