Skip to content

Commit

Permalink
remove obsolete exclude Meta attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Sep 20, 2024
1 parent 893bc94 commit 00427a2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion finder/admin/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class FileModelForm(EntangledModelForm):

class Meta:
model = FileModel
untangled_fields = ['name', 'labels']
exclude = ['meta_data']


Expand All @@ -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):
Expand Down
1 change: 0 additions & 1 deletion finder/contrib/audio/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion finder/contrib/image/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion finder/contrib/video/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 00427a2

Please sign in to comment.