Carl Meyer  committed 4f0e1b5

ensure modeltranslation.models is imported when TranslationAdmin is

  • Participants
  • Parent commits d0538a2
  • Branches ticket_19

Comments (0)

Files changed (1)

File modeltranslation/

 from modeltranslation.translator import translator
 from modeltranslation.utils import get_translation_fields
+# ensure that models are registered for translation before TranslationAdmin runs
+# (fixes issue with "model not registered for translation" under mod_wsgi)
+import modeltranslation.models
 class TranslationAdminBase(object):
     Mixin class which adds patch_translation_field functionality.