~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlevents/admin.py

  • Committer: franku
  • Date: 2016-04-18 13:29:23 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160418132923-bfzkb5mvdr7l8mz4
added migrations to each app

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
from models import Event
5
5
from django.contrib import admin
6
6
 
7
 
 
8
7
class EventAdmin(admin.ModelAdmin):
9
 
    search_fields = ['name']
10
 
    list_display = ['name', 'start_date']
11
 
    list_filter = ['start_date']
 
8
    search_fields = [ "name" ]
 
9
    list_display = ["name", "start_date"]
 
10
    list_filter = [ "start_date" ]
12
11
 
13
12
admin.site.register(Event, EventAdmin)
 
13