3 ms·
I'm not sure what he means here "You probably built your app using managers right?" Does anyone?
by j2d2 18y ago
I'm not sure what he means here "You probably built your app using managers right?" Does anyone?
- simonw 18y agohttp://www.djangoproject.com/documentation/db-api/#retrieving-objects http://www.djangoproject.com/documentation/db-api/#retrievin... In Django, objects are retrieved from the ORM something like this: entries = Entry.objects.filter(published = True) Entry.objects is a "manager" - an object that knows how to implement operations across the overall set of objects. You can create custom managers if you want to add custom operations that can be run against all of the objects - for example, you might want to "Entry.published" to be a special manager that pre-filters your entries to the ones that have their published flag set.