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', )
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24856>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:1>
Comment (by liwee):
I started a new project based on the tutorial. I have attached relevant
screens as well
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)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:2>
* Attachment "9.PNG" added.
* Attachment "10.PNG" added.
* Attachment "11.PNG" added.
Comment (by timgraham):
What browser? Any JavaScript errors in the console?
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:3>
Comment (by liwee):
chrome Version 43.0.2357.81 m
attached javascript console output below
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:4>
* Attachment "9_javascript.PNG" added.
* Attachment "10_javascript.PNG" added.
Comment (by liwee):
The popup works in IE 11.
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:5>
Comment (by timgraham):
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:6>
Comment (by liwee):
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/24856#comment:7>