limit_choices_to

0 views
Skip to first unread message

Luke Plant

unread,
Mar 21, 2006, 8:06:22 PM3/21/06
to django-d...@googlegroups.com

limit_choices_to is broken in m-r, it seems. The attached patch fixes
it I think, but as I don't know as much about this as I'd like and it's
1.00am here, I'm not going to commit it.

It seems that limit_choices_to is currently an attribute on the Options
class (aka Meta and ._meta). It's also on the ManyToMany, ManyToOne
classes etc, where it seems to belong. I don't know whether it should
be on Options - that doesn't seem to make sense, and it doesn't work
either.

Regards,

Luke

--
To iterate is human, to recurse, divine. L. Peter Deutch

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

fix_limit_choices_to.diff

ChaosKCW

unread,
Mar 22, 2006, 4:26:51 AM3/22/06
to Django developers
Your patch seems to be work.

ChaosKCW

unread,
Mar 22, 2006, 4:28:00 AM3/22/06
to Django developers
I used it on several examples and in each case it worked.

Reply all
Reply to author
Forward
0 new messages