Allow correspondents to be deleted without deleting their documents

Fixes #235
This commit is contained in:
Daniel Quinn
2017-07-15 19:06:52 +01:00
parent ede274386b
commit 347986a2b3
6 changed files with 82 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
import factory
from ..models import Document, Correspondent
class CorrespondentFactory(factory.DjangoModelFactory):
class Meta:
model = Correspondent
name = factory.Faker("name")
class DocumentFactory(factory.DjangoModelFactory):
class Meta:
model = Document