Implement documents inline for books and catalogs

This commit is contained in:
2024-12-22 21:45:56 +01:00
parent d55bce6e78
commit dad40b3ee7
6 changed files with 126 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ class Document(models.Model):
class Meta:
abstract = True
verbose_name_plural = "Documents"
def __str__(self):
return "{0}".format(os.path.basename(self.file.name))