Re: limit_choices_to & get_sql()

2009-09-22 Thread Nicolas Steinmetz
On 22 sep, 23:31, Daniel Roseman wrote: > Seems like you're looking at the ForeignKey documentation. The > reference to get_sql() is confusing and very out of date on that page > - Q objects don't have such a method, although they may have done back > before the merge of queryset-refactor before

Re: limit_choices_to & get_sql()

2009-09-22 Thread Daniel Roseman
On Sep 22, 10:16 pm, Nicolas Steinmetz wrote: > Hello, > > I would like to present only a subset of a given models. But so far, > in the admin, I have no value whereas there should be some. > > I tried several syntax but did not find the right one. > > Here are my implicated (and simplified) mode

limit_choices_to & get_sql()

2009-09-22 Thread Nicolas Steinmetz
Hello, I would like to present only a subset of a given models. But so far, in the admin, I have no value whereas there should be some. I tried several syntax but did not find the right one. Here are my implicated (and simplified) models : class Dns(models.Model): """ DNS description