Use local key instead of openlibrary key in urls

but uh maybe the local key shouldn't look so gnarly?
This commit is contained in:
Mouse Reeve
2020-03-27 15:42:44 -07:00
parent 5d2fbb8500
commit 0f98610629
13 changed files with 24 additions and 22 deletions

View File

@ -1,6 +1,7 @@
''' database schema for books and shelves '''
from datetime import datetime
from django.db import models
from model_utils.managers import InheritanceManager
from uuid import uuid4
from fedireads.settings import DOMAIN
@ -66,6 +67,7 @@ class Book(FedireadsModel):
)
# TODO: why can't I just call this work????
parent_work = models.ForeignKey('Work', on_delete=models.PROTECT, null=True)
objects = InheritanceManager()
@property
def absolute_id(self):