Donate to support Ukraine's independence.

22 Feb'12

django default manager

You can add a manager to all models of some type if you subclass an abstract model which declares a manager.

For example, you can declare ugcModel with publication status and published_items manager.

Link: https://docs.djangoproject.com/en/dev/topics/db/managers/#custom-managers-and-model-inheritance

Category: 

Comments