diff --git a/finder/admin/file.py b/finder/admin/file.py index 22f74e182..634d70b02 100644 --- a/finder/admin/file.py +++ b/finder/admin/file.py @@ -32,6 +32,7 @@ class FileModelForm(EntangledModelForm): class Meta: model = FileModel + untangled_fields = ['name', 'labels'] exclude = ['meta_data'] @@ -40,7 +41,6 @@ class FileAdmin(InodeAdmin): form = FileModelForm form_template = 'admin/finder/change_file_form.html' readonly_fields = ['details', 'owner', 'created_at', 'last_modified_at', 'mime_type', 'sha1'] - exclude = ['meta_data'] @property def media(self): diff --git a/finder/contrib/audio/admin.py b/finder/contrib/audio/admin.py index ea9e65c35..4f1540907 100644 --- a/finder/contrib/audio/admin.py +++ b/finder/contrib/audio/admin.py @@ -28,7 +28,6 @@ class Media: @admin.register(AudioFileModel) class AudioAdmin(FileAdmin): form = AudioForm - exclude = None def get_settings(self, request, inode): settings = super().get_settings(request, inode) diff --git a/finder/contrib/image/admin.py b/finder/contrib/image/admin.py index 524d7f036..92539150d 100644 --- a/finder/contrib/image/admin.py +++ b/finder/contrib/image/admin.py @@ -38,7 +38,6 @@ class Media: @admin.register(ImageModel) class ImageAdmin(FileAdmin): form = ImageForm - exclude = None def get_settings(self, request, inode): settings = super().get_settings(request, inode) diff --git a/finder/contrib/video/admin.py b/finder/contrib/video/admin.py index b6c1aa11c..ea46675c6 100644 --- a/finder/contrib/video/admin.py +++ b/finder/contrib/video/admin.py @@ -26,7 +26,6 @@ class Media: @admin.register(VideoFileModel) class VideoAdmin(FileAdmin): form = VideoForm - exclude = None def get_settings(self, request, inode): settings = super().get_settings(request, inode)