X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3d4b6a3014e2e6cfc908a2cd3d36a470b23448cd..87d825dfb13275cd763c844afbc29b66c2ac1aa6:/apps/catalogue/models.py diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index df7a79ece..a0ebf052c 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -182,7 +182,7 @@ def book_upload_path(ext=None, maxlen=100): class BookMedia(models.Model): - type = models.CharField(_('type'), choices=MEDIA_FORMATS, max_length="100") + type = models.CharField(_('type'), choices=MEDIA_FORMATS, max_length="100", editable=False) name = models.CharField(_('name'), max_length="100") file = OverwritingFileField(_('file'), upload_to=book_upload_path()) uploaded_at = models.DateTimeField(_('creation date'), auto_now_add=True, editable=False)