fixed stupid postgres error
This commit is contained in:
parent
9dc9705406
commit
4216e11e5b
10 changed files with 13 additions and 77 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue