#14880: raw_id_fields in admin does not work when limit_choices_to dictionary 
has
value=False
-------------------------------------------+--------------------------------
          Reporter:  [email protected]   |         Owner:  nobody             
            Status:  new                   |     Milestone:  1.3                
         Component:  django.contrib.admin  |       Version:  1.2                
        Resolution:                        |      Keywords:  blocker, regression
             Stage:  Accepted              |     Has_patch:  0                  
        Needs_docs:  0                     |   Needs_tests:  0                  
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by smallming):

 I will like to add a line to admin.py in the initial bug report so it
 properly reflects the bug and "skip" `SuspiciousOperation` exception.
 Reason below.
 [[BR]]


 {{{
 class PublisherAdmin(admin.ModelAdmin):
     list_display = ['name', 'overseas']
     list_filter = ['overseas'] # Added for illustration
 }}}


 I was tracing the bug using 1.2.4, and found that the
 `SuspiciousOperation` is due to the lack of corresponding
 `ModelAdmin.list_filter` specified. Adding `list_filter = ['overseas']` to
 `PublisherAdmin` will lead to the original bug reported (at least in
 1.2.4).

 Perhaps a separate bug can be filed under "raw_id_fields in admin raise
 `SuspiciousOperation` when `limit_choices_to` is used without
 corresponding `ModelAdmin.list_filter`".

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14880#comment:6>
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