Don't store default edition in the dataase

This commit is contained in:
Mouse Reeve
2021-04-28 15:19:24 -07:00
parent ccf10e8012
commit 6551c59c45
14 changed files with 56 additions and 62 deletions

View File

@ -2,7 +2,7 @@
from django.test import TestCase
from django.core.exceptions import ValidationError
from bookwyrm import models, settings
from bookwyrm import models
class ReadThrough(TestCase):
@ -19,8 +19,6 @@ class ReadThrough(TestCase):
self.edition = models.Edition.objects.create(
title="Example Edition", parent_work=self.work
)
self.work.default_edition = self.edition
self.work.save()
self.readthrough = models.ReadThrough.objects.create(
user=self.user, book=self.edition