Best way to create a many-to-one relationship between
django.contrib.auth.models.User and my own Company model (i.e. many
users in one company)?

Unless I was inclined to add a ManyToOneField to the User model (which
I'm not), then is a ManyToManyField in my Company model the best way
of dealing with this? If it is, then I would wish to restrict to a one-
to-one relationship on the User/UserCompany of the join table. So then
what would be the best way of tackling this?

There seems to be a more general problem of reusing non-mutable
application models here in this type of relationship, but I haven't
found anything yet. Advice very welcome.

Thanks,

Paul.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to