On 22 sep, 23:31, Daniel Roseman <dan...@roseman.org.uk> 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 version 1.0 was released.
>
> Anyway, the syntax is simple:
>     limit_choices_to = {'dnstype': 2}

That's it, thanks.

Indeed, I misunderstood the doc here :
http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey

Have a nice day,
Nicolas
--~--~---------~--~----~------------~-------~--~----~
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 to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to