Положение сотрудников
This commit is contained in:
1 parent
537a964844
commit
d9014e10b9
7 files changed
+34
-7
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ class NewsAPIView(ListAPIView):
|
||||
|
||||
upd.cdate=datetime.now()
|
||||
upd.save()
|
||||
for y in ScoreNews.objects.filter(news_id=request.data['news']):
|
||||
|
||||
back = [{"score":y.score, "user":y.author.username} for y in ScoreNews.objects.filter(news_id=request.data['news'])]
|
||||
|
||||
if 'text' in request.data:
|
||||
|
||||
Reference in new issue
Block a user