Issue #4 duplicate

InheritanceManager, add option to filter out subclasses/mainclass models

Getlogic
created an issue

Place.objects.filter_subclass('restaurant')

Only returns restaurant objects as Places

Place.objects.select_subclasses().filter_subclass('restaurant')

Only returns restaurant objects

Place.objects.select_subclasses().exclude_subclass('place')

Returns Restaurants and Bars

Or if we can do this, please document how to do it :D

Comments (1)

  1. Log in to comment