Skip to content
Snippets Groups Projects
Commit 69f29fb5 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Order events by start date (descending)

parent 60b66dc0
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ class EventAdmin(admin.ModelAdmin):
list_display = ['name', 'place', 'start', 'end', 'active']
list_filter = ['active']
list_editable = ['active']
ordering = ['start']
ordering = ['-start']
def get_form(self, request, obj=None, change=False, **kwargs):
# Use timezone of event
......
......@@ -36,7 +36,7 @@ class Event(models.Model):
class Meta:
verbose_name = _('Event')
verbose_name_plural = _('Events')
ordering = ['name']
ordering = ['-start']
def __str__(self):
return self.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment