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'))
>
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
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)
--~--~-~--~---
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
4 matches
Mail list logo