You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

managers.py 188B

123456
  1. from django.db import models
  2. class BrowsableItemManager(models.Manager):
  3. def get_query_set(self):
  4. return super(BrowsableItemManager, self).get_query_set().filter(parent=None)