Files
mayan-edms/mayan/apps/linking/managers.py
2017-02-12 02:22:26 -04:00

9 lines
206 B
Python

from django.db import models
class SmartLinkManager(models.Manager):
def get_for(self, document):
return self.filter(
document_types=document.document_type, enabled=True
)