Re: foreign_key limiting choices

2006-05-22 Thread Robert
groups.com with HTTP; Mon, 22 May 2006 20:51:37 + (UTC) From: "Robert" <[EMAIL PROTECTED]> To: "Django users" Subject: Re: foreign_key limiting choices Date: Mon, 22 May 2006 13:51:37 -0700 Message-ID: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED

Re: foreign_key limiting choices

2006-05-22 Thread Robert
Yes, I was considering using limit_choices_to, but have no idea how this should be done. I've read it many times. I only see eq, exact etc. options, which I don't see useful according to my (toll Django/Python newbie) knowledge. I don't see any limit_choices_to Queryset (other thatn dict) example

Re: foreign_key limiting choices

2006-05-21 Thread Malcolm Tredinnick
with ESMTP id 20E72C38C for ; Sun, 21 May 2006 22:32:25 +1000 (EST) Subject: Re: foreign_key limiting choices From: Malcolm Tredinnick <[EMAIL PROTECTED]> To: django-users@googlegroups.com In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content

foreign_key limiting choices

2006-05-21 Thread Robert
Hello, I'm writing a small app. for wifi network management. In a "computer" model there is an "ext_ip" field which is a ForeignKey to "Ext_ip" model. When adding/modifying a computer, I can use a select one from ext_ips list. The problem is that I need to select only from ext_ips not used by