We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04fe32 commit a69d990Copy full SHA for a69d990
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