fixed stupid postgres error

This commit is contained in:
CDaut 2022-06-17 21:57:07 +02:00 committed by CDaut
parent 9dc9705406
commit 4216e11e5b
10 changed files with 13 additions and 77 deletions

View file

@ -19,6 +19,6 @@ class PostFactory(factory.Factory):
tags = Tag.objects.all()[0] if len(Tag.objects.all()) != 0 else None
if len(Topic.objects.all()) == 0:
TopicFactory.create_batch(10)
topics = Topic.objects.all()[0]
topics = Topic.objects.all()[0] if len(Topic.objects.all()) != 0 else None
mdfile = "/tmp/test.md"