Opened 16 years ago
Closed 16 years ago
#11490 closed (worksforme)
Editing a model that contains m2m inline hangs the server
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.0 |
| Severity: | Keywords: | inlines | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The code first:
#models.py
class Obj(models.Model):
name = models.CharField(max_length=100)
class ObjConf(models.Model):
obj = models.ForeignKey(Obj, unique=True)
someStuff = models.ManyToManyField('someStuff')
class someStuff(models.Model):
name = models.CharField(max_length=100)
#admin.py
class ObjConfInline(admin.TabularInline):
model = ObjConf
class ObjAdmin(admin.ModelAdmin):
inlines = [ObjConfInline,]
admin.site.register(Obj, ObjAdmin)
When I create a new instance of Obj, everything is OK. But when trying to /admin/project/app_name/Obj/1 the server starts thinking forever and never responds(only Ctrl+C works)
Note:
See TracTickets
for help on using tickets.