Re: How to import Group from auth model to my model?

2007-03-29 Thread Russell Keith-Magee
On 3/29/07, TaMeR <[EMAIL PROTECTED]> wrote: > > Without the , verbose_name=_('Groups') it worked > > > from django.db import models > from django.contrib.auth.models import User, Group > > > class Company(models.Model): > name = models.CharField(maxlength=30, verbose_name=_('Company')) >

Re: How to import Group from auth model to my model?

2007-03-29 Thread Jeremy Dunck
This sounds like a bug. Please file a ticket. On 3/29/07, TaMeR <[EMAIL PROTECTED]> wrote: > > Without the , verbose_name=_('Groups') it worked > > from django.db import models > from django.contrib.auth.models import User, Group > > > class Company(models.Model): > name = models.CharField(m

How to import Group from auth model to my model?

2007-03-29 Thread TaMeR
Without the , verbose_name=_('Groups') it worked from django.db import models from django.contrib.auth.models import User, Group class Company(models.Model): name = models.CharField(maxlength=30, verbose_name=_('Company')) groups = models.ManyToManyField(Group) --~--~-~--~---

How to import Group from auth model to my model?

2007-03-29 Thread TaMeR
I am trying to import Group from the auth models in to my model. I like to get a select box in the admin area just like the one we get when we are in the admin user panel for my Company model. Here is what I got but as soon as I add the line "groups = models.ManyTo" the Company module disappe