If I understood you problem:

{{{
from django.contrib.auth.models import Group
class Area(models.Model):
    groups=models.ManyToManyField(Group)
}}}

This creates a Many-To-May relation to Group.

Copied from brain to keyboard (untested)

HTH,
  Thomas

nucles schrieb:
> Hello Django-People,
>
> we use the embedded functionality of the user authentication in
> Django.
> We use folowing models: "user", "auth_group", "auth_user_group" and
> other embedded models that does not matter in this context.
> We would like to add the additional entity "area" with M-to-M relation
> to the "user_auth_group" entity (please note: "user" has M-to-M
> relation to "auth_group")
>
> How can we do this? The "user_auth_group" will be automatically
> generate from Django, so we can not relate to this entity from any
> other model.
>
> We can of cause create our own user authentication without embedded
> user authentication in Django, but is this the best solution?
> I hope you understand our problem.
>
> Thank you.
> Regard
> Nucles
>
>
> >
>   


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to