Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
I'm under a really tight deadline on this pro-bono project, so I may just create a duplicate class and work around it at this point. It's not that much extra code, and the end-users will never know the difference. I'll see what I can do about figuring out why it's not behaving and contribute back

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
On May 30, 4:28 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Ok, sorry, I'm a dork, I forgot how to run patches. I successfully > merged the first patch into my newforms-admin install, but it still > doesn't work. Option 1: Try to fix the patch yourself and contribute it back to the ticket

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Ok, sorry, I'm a dork, I forgot how to run patches. I successfully merged the first patch into my newforms-admin install, but it still doesn't work. On May 30, 3:16 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > I manually copied and pasted the code from the patch into > filterspecs.py, as

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
I manually copied and pasted the code from the patch into filterspecs.py, as shown in the patch, but no dice. I set up a sample application using trunk, and limit_choices_to is working correctly. I deleted the .pyc file for filterspecs. Is there something else I need to do to incorporate the

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
On May 30, 3:54 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > I switched out the code in the path into my newforms-admin install, > but it still doesn't want to work. Ugh! I'm going to try switching to > trunk on a different computer to see if it will work in trunk. > > Any further thoughts

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
I switched out the code in the path into my newforms-admin install, but it still doesn't want to work. Ugh! I'm going to try switching to trunk on a different computer to see if it will work in trunk. Any further thoughts before I move on a create a completely separate model for Staff Members

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
> > I'm using the newforms-admin branch of Django. Thanks, Ah...there's an open ticket that discusses this along with a newforms- admin patch: http://code.djangoproject.com/ticket/3096 --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hi, Here is "Member" MEMBER_TYPE_CHOICES = ( ('staff','Staff'), ('board','Board'), ) class Member(models.Model): member_type = models.CharField(max_length=30, choices=MEMBER_TYPE_CHOICES) first_name = models.CharField(max_length=30)

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
Hi again, Brandon, > Thanks for pointing that out in the documentation, I wasn't aware of > that filter. However, I can't seem to get it to work. > > I've tried specifying the values as: > > staff_members_to_notify = models.ManyToManyField(Member, > limit_choices_to = {'member_type' : 'staff'})

Re: Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hi Rajesh, Thanks for pointing that out in the documentation, I wasn't aware of that filter. However, I can't seem to get it to work. I've tried specifying the values as: staff_members_to_notify = models.ManyToManyField(Member, limit_choices_to = {'member_type' : 'staff'}) and several other

Re: Help using Model Managers please

2008-05-30 Thread Rajesh Dhawan
Hi Brandon, > I have two Models: Member, Job > > Member has two types: Staff, Board > > Job needs to have a ManyToMany field for Member, so I can send emails > to those associated records. > > So, what I'm trying to accomplish is to filter the list of Members > that are shown in the ManyToMany

Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hello everyone, I have two Models: Member, Job Member has two types: Staff, Board Job needs to have a ManyToMany field for Member, so I can send emails to those associated records. So, what I'm trying to accomplish is to filter the list of Members that are shown in the ManyToMany to include