fixed compatibility with nested inlines (https://github.com/Soaa-/django-nested-inlines)