1
0
Fork 0

Improves templates

This commit is contained in:
Mouse Reeve 2020-01-28 17:23:38 -08:00
parent b554280481
commit e0c174d990
11 changed files with 166 additions and 132 deletions

View file

@ -199,7 +199,7 @@ class ShelfBook(models.Model):
class Book(models.Model):
''' a non-canonical copy from open library '''
activitypub_id = models.CharField(max_length=255)
openlibrary_key = models.CharField(max_length=255)
openlibrary_key = models.CharField(max_length=255, unique=True)
data = JSONField()
works = models.ManyToManyField('Work')
authors = models.ManyToManyField('Author')