mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2026-02-04 22:24:42 +01:00
fix all pylint complaints
This commit is contained in:
@ -13,7 +13,8 @@ class SongAdmin(admin.ModelAdmin):
|
||||
search_fields = ('artist', 'title', 'user__name')
|
||||
inlines = [ReportNoteInline]
|
||||
|
||||
def reports(self, song):
|
||||
@staticmethod
|
||||
def reports(song):
|
||||
return ReportNote.objects.filter(song=song).count()
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user