Ver Fonte

[webpages] Fix lookup key for scrobbles

Colin Powell há 1 ano atrás
pai
commit
4e330a6f03
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      vrobbler/apps/webpages/models.py

+ 1 - 1
vrobbler/apps/webpages/models.py

@@ -64,7 +64,7 @@ class WebPage(ScrobblableMixin):
 
     def scrobbles(self, user):
         Scrobble = apps.get_model("scrobbles", "Scrobble")
-        return Scrobble.objects.filter(user=user, webpage=self).order_by(
+        return Scrobble.objects.filter(user=user, web_page=self).order_by(
             "-timestamp"
         )