"Cannot read property 'prefix' of undefined" javascript error in Django inlines.js

Viewed 866

After updating Django to version 2.1.9 (from 1.9.8) I am receiving "Cannot read property 'prefix' of undefined" javascript error on Django admin page when there are inline models.

The problem is in function tabularFormset in inlines.js file. This function takes two parameters: function(selector, options). options here should have prefix param but it appears that options are undefined.

It looks like Django custom functions doesn't append selector as a first param, so options are first param. In result options param here is undefined.

Does anyone know what the problem might be here?

0 Answers
Related