Skip to content

Commit

Permalink
better judge and court admin
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Aug 14, 2023
1 parent 2716216 commit b480816
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion peachjam/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,8 @@ class DocumentNatureAdmin(admin.ModelAdmin):
@admin.register(Court)
class CourtAdmin(admin.ModelAdmin):
inlines = [EntityProfileInline]
list_display = ("name", "code")
search_fields = ("name", "code")


@admin.register(Author)
Expand Down Expand Up @@ -913,13 +915,19 @@ class LabelAdmin(admin.ModelAdmin):
class LocalityAdmin(admin.ModelAdmin):
list_display = ("name", "jurisdiction", "code")
prepopulated_fields = {"code": ("name",)}
search_fields = ("name", "code")


@admin.register(Judge)
class JudgeAdmin(admin.ModelAdmin):
list_display = ("name",)
search_fields = ("name",)


admin.site.register(
[
CitationLink,
Attorney,
Judge,
MatterType,
CourtClass,
AttachedFileNature,
Expand Down

0 comments on commit b480816

Please sign in to comment.