#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)
Change History (12)
comment:1 by , 10 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
comment:2 by , 10 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)
by , 10 years ago
by , 10 years ago
by , 10 years ago
by , 10 years ago
| Attachment: | 9_javascript.PNG added |
|---|
by , 10 years ago
| Attachment: | 10_javascript.PNG added |
|---|
comment:6 by , 10 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 , 10 years ago
I see, yes, I am using django-grappelli.
Ran a few more tests on the clean project (without django-grappelli)
- work in IE 11
- work in chrome (incognito mode)
- 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.
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.