- cover_thumb = EbookField(
- 'cover_thumb', _('cover thumbnail'),
- null=True, blank=True,
- upload_to=_cover_thumb_upload_to,
- max_length=255)
- cover_thumb_etag = models.CharField(max_length=255, editable=False, default='', db_index=True)
- cover_api_thumb = EbookField(
- 'cover_api_thumb', _('cover thumbnail for mobile app'),
- null=True, blank=True,
- upload_to=_cover_api_thumb_upload_to,
- max_length=255)
- cover_api_thumb_etag = models.CharField(max_length=255, editable=False, default='', db_index=True)
- simple_cover = EbookField(
- 'simple_cover', _('cover for mobile app'),
- null=True, blank=True,
- upload_to=_simple_cover_upload_to,
- max_length=255)
- simple_cover_etag = models.CharField(max_length=255, editable=False, default='', db_index=True)
- cover_ebookpoint = EbookField(
- 'cover_ebookpoint', _('cover for Ebookpoint'),
- null=True, blank=True,
- upload_to=_cover_ebookpoint_upload_to,
- max_length=255)
- cover_ebookpoint_etag = models.CharField(max_length=255, editable=False, default='', db_index=True)
+ cover_clean = fields.CoverCleanField(_('clean cover'))
+ cover_thumb = fields.CoverThumbField(_('cover thumbnail'))
+ cover_api_thumb = fields.CoverApiThumbField(
+ _('cover thumbnail for mobile app'))
+ simple_cover = fields.SimpleCoverField(_('cover for mobile app'))
+ cover_ebookpoint = fields.CoverEbookpointField(
+ _('cover for Ebookpoint'))
+