#28013: admin/inlines.js has different functionality from admin/inlines.min.js
--------------------------------+--------------------------------------
Reporter: Joseph Solomon | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.fc80f4c16cb92b99d489d51e9f71a5a8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.