I have run into this issue with using django-trix elements.
An example project is here: https://github.com/istrategylabs/trix_test.
This has been tested with Django 1.10.6 and 1.11rc1.
--
Ticket URL: <https://code.djangoproject.com/ticket/28013>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by kapil garg):
I was unable to reproduce the bug. I used the following code. I tried both
'inlines.js' and 'inlines.min.js'
{{{
class Parent(models.Model):
name = models.CharField(max_length=100, default='Father')
class Child(models.Model):
parent = models.ForeignKey(Parent, on_delete=models.CASCADE)
name = models.CharField(max_length=100, default='Child')
class ChildAdmin(admin.TabularInline):
model = Child
@admin.register(Parent)
class ParentAdmin(admin.ModelAdmin):
inlines = (ChildAdmin,)
list_display = ('id', 'name')
fields = ('name',)
}}}
Is there any other thing need to do to reproduce the error ?
--
Ticket URL: <https://code.djangoproject.com/ticket/28013#comment:1>
Comment (by Tim Graham):
Joseph, ideally the sample project wouldn't involve any third-party
JavaScript to rule out some issue there.
If there's some behavior difference in the minified JavaScript, then it
might be a bug for
[https://docs.djangoproject.com/en/dev/internals/contributing/writing-
code/javascript/#compressing-javascript the closure compiler] that Django
uses to generate that code.
--
Ticket URL: <https://code.djangoproject.com/ticket/28013#comment:2>
* status: new => closed
* resolution: => needsinfo
--
Ticket URL: <https://code.djangoproject.com/ticket/28013#comment:3>