aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-08-03 21:38:07 +0100
committerMatthew Lemon <y@yulqen.org>2024-08-03 21:38:45 +0100
commit82557e058b9c98424d612bf0eaa917e4fe222480 (patch)
tree547e74ba2c682655905df374010f103e9669336f /pyblackbird_cc/resources/models.py
parent597c58300422aadcdc58a027e7334dd3cf3600a9 (diff)
Add admin models for PDFResource and PDFPageSnapshot
Expand the admin interface to include PDFResource and PDFPageSnapshot models. The new admin classes define `list_display` attributes to manage displayed columns in the admin list views.
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index 31085c0..f938cb4 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -152,6 +152,7 @@ class PDFResource(models.Model):
file_size = models.IntegerField(null=False)
class Meta:
+ verbose_name_plural = "PDF Resources"
unique_together = ("resource", "file_name")
def __str__(self):
@@ -171,5 +172,8 @@ class PDFPageSnapshot(models.Model):
related_name="pdf_page_snapshots",
)
+ class Meta:
+ verbose_name_plural = "PDF Page Snapshots"
+
def __str__(self):
return self.name