Opened 15 years ago

Closed 15 years ago

#11490 closed (worksforme)

Editing a model that contains m2m inline hangs the server

Reported by: v.kryachko@… 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)

Change History (1)

comment:1 by Russell Keith-Magee, 15 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top