Skip to content

Commit

Permalink
refactor: Update admin.py to remove unnecessary fields in CompanyAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
QA2A committed Sep 4, 2024
1 parent 5602b67 commit 435a930
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions website/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,9 @@ class CompanyAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"slug",
"twitter_url",
"greenhouse_url",
"lever_url",
"number_of_employees_min",
"number_of_employees_max",
"description",
"slug",
"website",
"city",
"state",
"country",
"ceo",
"ceo_twitter",
"email",
)
search_fields = ("name", "city", "state", "country", "ceo", "email")
prepopulated_fields = {"slug": ("name",)}
Expand Down

0 comments on commit 435a930

Please sign in to comment.