Example model that triggers the bug:
{{{#!python
class Node(models.Model):
name = models.CharField(max_length=255)
# "parentNode" as the foreign key name causes problems with Django
admin js code =(
parentNode = models.ForeignKey('self', blank=True, null=True,
on_delete=models.CASCADE)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30502>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* type: Uncategorized => Bug
* component: Uncategorized => contrib.admin
* version: 2.2 => master
* resolution: => invalid
* stage: Unreviewed => Accepted
Comment:
Thanks for the report. I reproduced this issue but it is not related with
any of Django's JS. jQuery hangs even if `CharField` is named
`parentNode`. You can try to look for a help on jQuery support channels.
Personally, I would try to avoid using DOM properties as a field names.
Closing per TicketClosingReasons/UseSupportChannels
--
Ticket URL: <https://code.djangoproject.com/ticket/30502#comment:1>
* resolution: invalid => fixed
Comment:
--
Ticket URL: <https://code.djangoproject.com/ticket/30502#comment:2>