forked from mirrors/bookwyrm
Fix R0201: Method could be a function (no-self-use)
This commit is contained in:
parent
c6f8236b07
commit
ee39e8c036
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue