Django 2
Django 2
m2m_changed signal
refresh_from_db()
Meta options
- abstract
- managed (defaults to true) - tells Django to manage the database tables’
lifecycles; when set to False, Django won't create a DB table, etc.; useful when
the model represents an existing table created by other means
- ordering - the default ordering of the object
Proxy models
- useful in multi-table inheritance, where we don't want the child model to have
it's own table
- a proxy model can have e.g. a different ordering, so that you can query the same
table in two different orders, depending on which model you invoke
DRF:
A Viewset groups multiple related actions together, handles different HTTP methods,
and often leverages automatic URL routing using routers.
Filtering backend
Browsable API