news_objects -> article_objects

This commit is contained in:
2020-06-16 17:25:08 +00:00
parent 24e553f241
commit ab86c556f0
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ from django.utils import timezone
from django.http import JsonResponse
def get_next_dict():
posts=Post.news_objects.order_by('-public_date').values('slug')
posts=Post.article_objects.order_by('-public_date').values('slug')
print(posts)
d={}
print(d)