KristianOellegaard/django-hvad — pull request #11 by andialbrecht (2012-01-11 11:03:57+00:00)
Title: Work on cloned query in TranslationQueryset.get().

Hi,

I've had some troubles when using a TranslationQueryset in a ModelChoiceField. When the field was rendered (a combobox) Django calls queryset.get() to retrieve the selected value and somehow this call caused the TranslationQueryset to forget about it's current language.

Sorry about this not very specific description. But currently I can't figure out the real problem behind this.

It would be nice if someone could have a look at this pull request. Cloning the TranslationQueryset instance in TranslationQueryset.get() solved the issue for me. Maybe someone with a better knowledge of the nani code can point me in the right direction.

Thanks!

Andi