views.py

This is probably where you have to change the most code

Ordering on translated fields

If you want to order on translated fields, you have to use the using_translations() on the manager:

ordered_by_name = MyModel.objects.using_translations().order_by('name')

Project Versions

Table Of Contents

Previous topic

models.py

Next topic

Admin

This Page