About Ordering by the Extra Fields of Many-to-many Relations
In the queryset with many-to-many relation through a custom model, you can access the through models fields
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Here the models of the readinglist
app are defined as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
Tips and Tricks Programming Development Databases Django 4.2 Django 3.2 Django 2.2 PostgreSQL MySQL SQLite
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.