Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.829 kb
from django.contrib import admin
from models import Employee, PingPongMatch, PingPongGame, PingPongRecords
class EmployeeAdmin(admin.ModelAdmin):
list_display = ["user","date_joined"]
fieldsets = [
("Profile", {
"fields": ("user", "nick_name", "title","teams","bio","sites","date_joined","birthday"),
}),
("Optional", {
"fields": ("twitter","facebook","website","skype","aim"),
})
]
class PingPongMatchAdmin(admin.ModelAdmin):
pass
class PingPongGameAdmin(admin.ModelAdmin):
pass
class PingPongRecordsAdmin(admin.ModelAdmin):
pass
admin.site.register(Employee, EmployeeAdmin)
admin.site.register(PingPongMatch, PingPongMatchAdmin)
admin.site.register(PingPongGame, PingPongGameAdmin)
admin.site.register(PingPongRecords, PingPongRecordsAdmin)
Jump to Line
Something went wrong with that request. Please try again.