X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3862401b670120eaebd893e2bf445ce48f4d9e75..7ad1e269182ce7d30dc5aa96b9b0f2c9427dac95:/src/catalogue/fields.py?ds=sidebyside diff --git a/src/catalogue/fields.py b/src/catalogue/fields.py index 448754957..4c8a780f0 100644 --- a/src/catalogue/fields.py +++ b/src/catalogue/fields.py @@ -56,7 +56,6 @@ class EbookField(models.FileField): """Represents an ebook file field, attachable to a model.""" attr_class = EbookFieldFile registry = [] - librarian2_api = False def __init__(self, format_name, *args, **kwargs): super(EbookField, self).__init__(*args, **kwargs) @@ -125,6 +124,8 @@ class EbookField(models.FileField): class BuildEbook(Task): + librarian2_api = False + formats = {} @classmethod