Commits

Guilherme Gondim  committed aac1cb1

AlbumManager now inherits from mptt.managers.TreeManager

  • Participants
  • Parent commits ad27686

Comments (0)

Files changed (1)

File galeria/models.py

 from imagekit.models import ImageSpec
 from imagekit.processors import Anchor, ResizeToFill, ResizeToFit, Transpose
 from mptt.fields import TreeForeignKey
+from mptt.managers import TreeManager
 from mptt.models import MPTTModel
 
 from galeria import EXIF
 )
 
 
-class AlbumManager(models.Manager):
+class AlbumManager(TreeManager):
     use_for_related_fields = True
 
     def public(self):