Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#24856 closed Bug (worksforme)

raw_id_fields popup missing

Reported by: liwee Owned by: nobody
Component: contrib.admin Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

My usual development server is running 1.7.x.
Downloaded 1.8.2 today and copied my existing project over to 1.8.2.

The popup for raw_id_fields seems to be missing. It was working on 1.7.x

raw_id_fields = ('cust', )

Attachments (5)

9.PNG (2.4 KB ) - added by liwee 9 years ago.
10.PNG (12.2 KB ) - added by liwee 9 years ago.
11.PNG (9.8 KB ) - added by liwee 9 years ago.
9_javascript.PNG (14.3 KB ) - added by liwee 9 years ago.
10_javascript.PNG (15.2 KB ) - added by liwee 9 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by Tim Graham, 9 years ago

Resolution: worksforme
Status: newclosed

I had no trouble adding this to the tutorial:

class ChoiceAdmin(admin.ModelAdmin):
    raw_id_fields = ('question',)

We'll need more details such as steps to reproduce or a sample project we can download to see the error.

comment:2 by liwee, 9 years ago

I started a new project based on the tutorial. I have attached relevant screens as well in order
9 (click on magnify glass) -> 10 (click on Customer object) -> 11

models.py

class Customer(models.Model):    
    name = models.CharField(max_length=200)
    
class Task(models.Model): 
    cust = models.ForeignKey(Customer)

admin.py

from .models import *

class TaskAdmin(admin.ModelAdmin):
    raw_id_fields = ('cust',)
    
admin.site.register(Task, TaskAdmin)
admin.site.register(Customer)
Last edited 9 years ago by liwee (previous) (diff)

by liwee, 9 years ago

Attachment: 9.PNG added

by liwee, 9 years ago

Attachment: 10.PNG added

by liwee, 9 years ago

Attachment: 11.PNG added

comment:3 by Tim Graham, 9 years ago

What browser? Any JavaScript errors in the console?

comment:4 by liwee, 9 years ago

chrome Version 43.0.2357.81 m
attached javascript console output below

by liwee, 9 years ago

Attachment: 9_javascript.PNG added

by liwee, 9 years ago

Attachment: 10_javascript.PNG added

comment:5 by liwee, 9 years ago

The popup works in IE 11.

comment:6 by Tim Graham, 9 years ago

Are you using any third-party apps? "grp" in the JavaScript console suggests django-grappelli to me. The string "grp" doesn't exist in the Django repo.

comment:7 by liwee, 9 years ago

I see, yes, I am using django-grappelli.

Ran a few more tests on the clean project (without django-grappelli)

  1. work in IE 11
  2. work in chrome (incognito mode)
  3. does not work in chrome (normal mode)

Since the same behaviour occurred initially when I created a clean project, it did not even occur to me that django-grappelli could be the culprit. Appreciate the advice. Thank you.

Note: See TracTickets for help on using tickets.
Back to Top