initial commit before migration

This commit is contained in:
Your Name 2025-02-17 17:50:22 +00:00
commit ad685a0625
75 changed files with 907 additions and 0 deletions

View file

@ -0,0 +1,11 @@
from django.views.generic import ListView
from blog.models import Article
class ArticleList(ListView):
preview = False
def get_queryset(self):
status = 1
if self.preview:
status = 0
return Article.objects.filter(status=status)