2012-07-28 21:05:01 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
import reversion
|
|
|
|
|
|
|
|
from symposion.teams.models import Team, Membership
|
|
|
|
|
|
|
|
admin.site.register(Team,
|
2014-07-30 18:19:26 +00:00
|
|
|
prepopulated_fields={"slug": ("name",)})
|
2012-07-28 21:05:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MembershipAdmin(reversion.VersionAdmin):
|
|
|
|
list_display = ["team", "user", "state"]
|
|
|
|
list_filter = ["team"]
|
|
|
|
search_fields = ["user__username"]
|
|
|
|
|
|
|
|
admin.site.register(Membership, MembershipAdmin)
|