0👍
annotations are just stored as plain instance attributes (just like the values for the ORM fields FWIW). You can use dir(my_model_instance)
to see all the attributes (class and instance ones) names, or my_model_instance.__dict__.keys()
for the plain instance attributes only.
- [Django]-JSON Response from Django in Android
- [Django]-Django – queryset order_by field that has characters and integers
Source:stackexchange.com