Closed GoogleCodeExporter closed 9 years ago
I'm using the following hack around this issue in my save_model - anyone else
looking for this, please note the horrible hard-coded "_en" field name:
from modeltranslation.translator import translator
opts = translator.get_options_for_model(self.model)
for base_field, trans_fields in opts.localized_fieldnames.items():
setattr(obj, base_field, form.cleaned_data["%s_en" % base_field])
super(MyAdmin, self).save_model(request, obj, form, change)
Original comment by cadams@loc.gov
on 29 Aug 2012 at 7:18
Project moved to Github. All issues have been migrated preserving their id. All
remaining open issues on GoogleCode are closed. New project url:
https://github.com/deschler/django-modeltranslation
Original comment by eschler
on 22 Oct 2012 at 8:22
Original issue reported on code.google.com by
cadams@loc.gov
on 29 Aug 2012 at 7:03