Re: basic model with user foreign key.

2006-03-12 Thread akaihola
from django.models.auth import User --~--~-~--~~~---~--~~ 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

Re: basic model with user foreign key.

2006-03-12 Thread patrick k
e.g. from django.models import auth owner = meta.ForeignKey(auth.User) ... that works for me. > > from django.core import meta > from django.models.auth import users ??? > > class Recette(meta.Model): > slug = meta.SlugField("Slug", prepopulate_from=('nom',) ,unique=True, > blank=True) > nom

basic model with user foreign key.

2006-03-12 Thread coulix
from django.core import meta from django.models.auth import users ??? class Recette(meta.Model): slug = meta.SlugField("Slug", prepopulate_from=('nom',) ,unique=True, blank=True) nom = meta.CharField(maxlength=80,help_text=_('Nom de la recette'), unique=True) []