Skip to content

Commit

Permalink
clean some coding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Oct 1, 2024
1 parent 4340b7b commit 759a617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions finder/admin/inode.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ def get_inodes(self, request, sorting=None, **lookup):
}

# search model admin for current inode and get its rendering settings
for base_model in obj.__class__.__mro__:
if model_admin := self.admin_site._registry.get(base_model):
values.update(model_admin.get_folderitem_settings(request, obj))
break
if model_admin := self.admin_site._registry.get(obj.__class__):
values.update(model_admin.get_folderitem_settings(request, obj))

if 'labels' in data_fields:
values['labels'] = list(obj.labels.values('id', 'name', 'color'))
Expand Down
1 change: 0 additions & 1 deletion finder/contrib/audio/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from django.core.files.storage import default_storage
from django.contrib.staticfiles.storage import staticfiles_storage
from django.utils.functional import classproperty

from filer import settings as filer_settings
from finder.models.file import FileModel
Expand Down

0 comments on commit 759a617

Please sign in to comment.