X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3862401b670120eaebd893e2bf445ce48f4d9e75..1799a9fde9bb34e2c54e94eb0d15472dd53ca4e6:/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