- dc_slug = models.CharField(max_length=128, null=True, blank=True,
- editable=False, db_index=True)
+ dc = models.JSONField(null=True, editable=False)
+ cover = models.FileField(blank=True, upload_to='documents/cover')
+ catalogue_book = models.ForeignKey(
+ 'catalogue.Book',
+ models.DO_NOTHING,
+ to_field='slug',
+ null=True, blank=True,
+ db_constraint=False,
+ editable=False, db_index=True,
+ related_name='document_books',
+ related_query_name='document_book',
+ )
+ legimi_id = models.CharField(max_length=255, blank=True)