~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlevents/admin.py

  • Committer: Holger Rapp
  • Date: 2009-02-26 22:38:49 UTC
  • Revision ID: sirver@kallisto.local-20090226223849-1563ij0uuw0lz0zu
First version of widelands online help

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