Update fields.py

This commit is contained in:
Joachim 2021-08-04 19:25:19 +02:00
parent 0db3512eb3
commit c1673ef717

View file

@ -424,6 +424,7 @@ class ImageField(ActivitypubFieldMixin, models.ImageField):
}
)
# pylint: disable=no-self-use
def get_absolute_url(self, value):
"""returns an absolute URL for the image"""
name = getattr(value, "name")