Re: Model with 2 foreignkey to User

2008-12-24 Thread Tirta K. Untario
Very useful post, thank you :) --Tirta --- On Wed, 24/12/08, Matias Surdi wrote: > From: Matias Surdi > Subject: Re: Model with 2 foreignkey to User > To: django-users@googlegroups.com > Date: Wednesday, 24 December, 2008, 7:26 PM > Maybe this helps: > > http://www.b

Re: Model with 2 foreignkey to User

2008-12-24 Thread Matias Surdi
side def save(self) for this model? I can't find anything about > getting current user value from model. > > Thanks in advance. > > --Tirta > -Original Message- > From: "Tirta K. Untario" > > Date: Wed, 24 Dec 2008 01:39:20 > To: > Su

Re: Model with 2 foreignkey to User

2008-12-24 Thread Tirta K. Untario
vance. --Tirta -Original Message- From: "Tirta K. Untario" Date: Wed, 24 Dec 2008 01:39:20 To: Subject: Model with 2 foreignkey to User Hi all, I'm developing a simple todo list. I use Django Auth for handling authentication. This is my models.py from django.contri

Re: Model with 2 foreignkey to User

2008-12-24 Thread Tirta K. Untario
Understood, thanks Paul. I missed this section from documentation :) --Tirta -Original Message- From: Paul van der Linden Date: Wed, 24 Dec 2008 11:09:25 To: Subject: Re: Model with 2 foreignkey to User Hi, just do as the error is telling you. created_by = models.ForeignKey

Re: Model with 2 foreignkey to User

2008-12-24 Thread Paul van der Linden
Hi, just do as the error is telling you. created_by = models.ForeignKey(User, related_name='createdBy') assigned_to = models.ForeignKey(User, related_name='assignedBy') or something like that. That works. Tirta K. Untario wrote: > Hi all, > > I'm developing a simple todo list. I use Dj

Model with 2 foreignkey to User

2008-12-24 Thread Tirta K. Untario
Hi all, I'm developing a simple todo list. I use Django Auth for handling authentication. This is my models.py from django.contrib.auth.models import User class Item(models.Model): project = models.ForeignKey(Project) category= models.ForeignKey(Category) title = model