Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Getting WrongManager Exception in Admin #32

Closed
lazerscience opened this Issue · 3 comments

3 participants

@lazerscience

I'm getting the following exception in my admin when trying to view the change list of a TranslatableModel:

WrongManager at /admin/grape/tagdescription/
To access translated fields like 'language_code' from an untranslated model, you must use a translation aware manager, you can get one using nani.utils.get_translation_aware_manager.

The exception appears when I'm trying to add a ForeignKey to another untranslated model. It goes away after I remove the ForeignKey. I will try do debug this further, seems a bit tricky to me - just posting here to know if you may already have an idea about the reason for this problem?

Here's the traceback btw http://dpaste.com/572255/

EDIT: Tried also to use the TranslationAwareManager which made no difference...

@Natim

I have also this message :s

@Natim

For me it came from the use of fieldsets and prepopulated_fields on TranslateAdmin.

@ojii
Owner

Please note that development now happens over at https://github.com/KristianOellegaard/django-hvad, so if this issue is also present in that fork, please re-submit it at https://github.com/KristianOellegaard/django-hvad/issues. Thank you.

@ojii ojii closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.