Fixes celery tasks expanding data not setting many to many fields

This commit is contained in:
Mouse Reeve
2020-12-23 12:45:40 -08:00
parent e7e90360b3
commit a3df0847e1
2 changed files with 16 additions and 22 deletions

View File

@ -59,9 +59,7 @@ class Book(BookDataModel):
subject_places = fields.ArrayField(
models.CharField(max_length=255), blank=True, null=True, default=list
)
# TODO: include an annotation about the type of authorship (ie, translator)
authors = fields.ManyToManyField('Author')
# preformatted authorship string for search and easier display
cover = fields.ImageField(
upload_to='covers/', blank=True, null=True, alt_field='alt_text')
first_published_date = fields.DateTimeField(blank=True, null=True)