We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a04fe32 + a69d990 commit eafa5a5Copy full SHA for eafa5a5
1 file changed
news/mixins.py
@@ -20,6 +20,7 @@ def get_queryset_for_project(self):
20
except Project.DoesNotExist:
21
# TODO: raise http 404 here
22
return News.objects.none()
23
+ # временное удаление постов для проектов с текстом
24
return News.objects.get_news(obj=project).exclude(
25
text="", content_type__model="project"
26
)
0 commit comments