aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-19 19:52:02 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-19 19:52:02 +0100
commit51bbea4361d4fafe93997ed0f3dae05be8389c96 (patch)
treeea180b511a9fe76127dc7f60acd5cf74352c40de /pyblackbird_cc/resources/models.py
parent8c0cbec4a801771c2eda26bba54d4cfcf95ca9d7 (diff)
wip: getting the thumbnails of resources
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index 6ecf525..7bbf244 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -115,6 +115,9 @@ class Resource(models.Model):
def get_absolute_url(self):
return reverse("resources:resource_detail", kwargs={"resource_id": self.pk})
+ def thumbnail_urls(self):
+ ri = _extract_metadata_from_resource(self)
+
class ResourceType(models.Model):
name = models.CharField(max_length=255, null=False)