#15355: Choices on ForeignKey in Inlines not limited to the model constraints
------------------------------------------------+---------------------------
               Reporter:  Stan                  |         Owner:  nobody        
         
                 Status:  closed                |     Milestone:                
         
              Component:  django.contrib.admin  |       Version:  1.3-beta      
         
             Resolution:  invalid               |      Keywords:  inline 
foreignkey admin
           Triage Stage:  Unreviewed            |     Has patch:  0             
         
    Needs documentation:  0                     |   Needs tests:  0             
         
Patch needs improvement:  0                     |  
------------------------------------------------+---------------------------
Changes (by russellm):

  * status:  reopened => closed
  * resolution:  => invalid


Comment:

 The fact that the address of an EmailAdvertisor needs to be restricted to
 a subset is a business decision. It isn't something that can be
 automatically assumed from the models you have provided. Mere existence of
 a foreign key isn't enough to imply that a relation should be constrained.

 Encoding this business rule  is something that limit_choices_to is
 intended to address.

 So, as far as I can make out, this isn't a bug.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15355#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to