django-modeltranslation icon indicating copy to clipboard operation
django-modeltranslation copied to clipboard

Disable modeltranslation on some sites

Open cbergmiller opened this issue 7 years ago • 0 comments

I have a multi-site application. I would like to disable modeltranslation for some customers (sites). It would be great if django-modeltranslations could be disabled (e.g. in a middleware on a request basis). Disable in this context would mean to store and retrieve model field values for the default language regardless of the currently activated language.

One way to archive this currently is to patch the utils.get_language() function in a custom middleware. Is there another way to to this? Is this be a feature other user would be interested in?

cbergmiller avatar Dec 08 '17 10:12 cbergmiller