mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-03 19:14:42 +00:00
Fix admin inlines recursion problem in Django 1.6 (ref #214).
This commit is contained in:
parent
9a5fe20140
commit
6b0106f1a5
2 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ Contributors
|
|||
* Karol Fuksiewicz
|
||||
* Konrad Wojas
|
||||
* Bas Peschier
|
||||
* Oleg Prans
|
||||
* And many more ... (if you miss your name here, please let us know!)
|
||||
|
||||
.. _django-linguo: https://github.com/zmathew/django-linguo
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ class TranslationInlineModelAdmin(TranslationBaseModelAdmin, InlineModelAdmin):
|
|||
# is displayed above the new fieldsets.
|
||||
if self.declared_fieldsets:
|
||||
return self._do_get_fieldsets_pre_form_or_formset()
|
||||
form = self.get_formset(request, obj).form
|
||||
form = self.get_formset(request, obj, fields=None).form
|
||||
return self._do_get_fieldsets_post_form_or_formset(request, form, obj)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue