Fix R0201: Method could be a function (no-self-use)

This commit is contained in:
Joachim 2021-08-04 19:16:24 +02:00
parent c6f8236b07
commit ee39e8c036

View file

@ -424,7 +424,7 @@ class ImageField(ActivitypubFieldMixin, models.ImageField):
}
)
def get_absolute_url(self, value):
def get_absolute_url(value):
"""returns an absolute URL for the image"""
name = getattr(value, "name")
if name is None: