Update fields.py
This commit is contained in:
parent
0db3512eb3
commit
c1673ef717
1 changed files with 1 additions and 0 deletions
|
@ -424,6 +424,7 @@ class ImageField(ActivitypubFieldMixin, models.ImageField):
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def get_absolute_url(self, value):
|
def get_absolute_url(self, value):
|
||||||
"""returns an absolute URL for the image"""
|
"""returns an absolute URL for the image"""
|
||||||
name = getattr(value, "name")
|
name = getattr(value, "name")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue