|
|
@@ -165,7 +165,7 @@ class DocumentTag(models.Model):
|
|
|
class DocumentManager(models.Manager):
|
|
|
|
|
|
def documents(self, user):
|
|
|
- return Document.objects.filter(Q(owner=user) | Q(documentpermission__users=user) | Q(documentpermission__groups__in=user.groups.all())).distinct()
|
|
|
+ return Document.objects.filter(Q(owner=user) | Q(documentpermission__users=user) | Q(documentpermission__groups__in=user.groups.all())).defer('description', 'extra').distinct()
|
|
|
|
|
|
def get_docs(self, user, model_class=None, extra=None):
|
|
|
docs = Document.objects.documents(user).exclude(name='pig-app-hue-script')
|