Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
removing fields from search (this never worked anway)
  • Loading branch information
staxly committed Sep 25, 2023
1 parent 8c1a00a commit 5ad4987
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions errata/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ class Media:
'detail',
'location',
'additional_location_information',
'accounts_user_name',
'accounts_user_email')
)
formfield_overrides = {
models.ManyToManyField: {'widget': CheckboxSelectMultiple},
}
Expand Down Expand Up @@ -179,18 +178,12 @@ def get_form(self, request, obj=None, **kwargs):
'accounts_link',
'file_1',
'file_2',
'accounts_user_name',
'accounts_user_email',
'accounts_user_faculty_status',
'archived',
'junk',
] # fields to show on the actual form
self.readonly_fields = ['id',
'created',
'modified',
'accounts_user_name',
'accounts_user_email',
'accounts_user_faculty_status',
'accounts_link',
]

Expand Down

0 comments on commit 5ad4987

Please sign in to comment.