Skip to content

Commit

Permalink
Add court dates to admin interface
Browse files Browse the repository at this point in the history
We should never actually touch these via admin, but it might be handy to see for debugging purposes so I'm including anyway.
  • Loading branch information
jacksonj04 committed May 31, 2023
1 parent b68fced commit 293abf7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions judgments/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# from django.contrib import admin
from django.contrib import admin

# Register your models here.
from judgments.models import CourtDates


@admin.register(CourtDates)
class CourtDatesAdmin(admin.ModelAdmin):
pass
4 changes: 4 additions & 0 deletions judgments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class Meta:


class CourtDates(models.Model):
class Meta:
verbose_name = "court date range"
verbose_name_plural = "court date ranges"

param = models.CharField(max_length=64, primary_key=True)
start_year = models.IntegerField(blank=False)
end_year = models.IntegerField(blank=False)
Expand Down

0 comments on commit 293abf7

Please sign in to comment.