diff options
author | luxagraf <sng@luxagraf.net> | 2016-01-19 16:12:56 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-01-19 16:12:56 -0500 |
commit | cd5b77cc2a23c6aa47e4253ff589218747cd5cb5 (patch) | |
tree | 02f8e8e2408491ac7901070f1bd2523fb6eebc33 | |
parent | 6f7dddb428ca4db098ffbf65570db6c41109515d (diff) |
Cleaned up daily admin and added some filters
-rw-r--r-- | app/daily/admin.py | 4 | ||||
-rw-r--r-- | app/daily/models.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/daily/admin.py b/app/daily/admin.py index 3ef76c0..8eea850 100644 --- a/app/daily/admin.py +++ b/app/daily/admin.py @@ -12,6 +12,10 @@ class WeatherAdmin(OSMGeoAdmin): class DailyAdmin(OSMGeoAdmin): list_display = ('date', 'location') + list_filter = ( + 'date', + ('location', admin.RelatedOnlyFieldListFilter), + ) form = LGEntryForm fieldsets = ( (None, { diff --git a/app/daily/models.py b/app/daily/models.py index 8fcce7f..2270fd2 100644 --- a/app/daily/models.py +++ b/app/daily/models.py @@ -72,7 +72,7 @@ class Daily(models.Model): title = models.CharField(max_length=200, blank=True, null=True) body_html = models.TextField(blank=True, null=True) body_markdown = models.TextField(blank=True, null=True) - date = models.DateField('Date published') + date = models.DateField() class Meta: ordering = ('date',) |