~timo-wingender/widelands-website/ggz-support

« back to all changes in this revision

Viewing changes to wlevents/admin.py

  • Committer: Timo Wingender
  • Date: 2010-09-28 09:01:50 UTC
  • mfrom: (209.1.8 widelands)
  • Revision ID: timo.wingender@gmx.de-20100928090150-z0c7cf6mf04qpasb
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python -tt
 
2
# encoding: utf-8
 
3
 
 
4
from models import Event
 
5
from django.contrib import admin
 
6
 
 
7
class EventAdmin(admin.ModelAdmin):
 
8
    search_fields = [ "name" ]
 
9
    list_display = ["name", "start_date"]
 
10
    list_filter = [ "start_date" ]
 
11
 
 
12
admin.site.register(Event, EventAdmin)
 
13