Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
581 B

16 years ago
  1. from dingenskirchen.mumble.models import *
  2. from django.contrib import admin
  3. class MumbleAdmin(admin.ModelAdmin):
  4. list_display = [ 'name', 'addr', 'port', 'booted' ];
  5. list_filter = [ 'booted' ];
  6. search_fields = [ 'name', 'addr' ];
  7. ordering = [ 'name' ];
  8. class MumbleUserAdmin(admin.ModelAdmin):
  9. list_display = [ 'owner', 'server', 'name' ];
  10. list_filter = [ 'server' ];
  11. search_fields = [ 'owner__username', 'name' ];
  12. ordering = [ 'owner__username' ];
  13. admin.site.register( Mumble, MumbleAdmin );
  14. admin.site.register( MumbleUser, MumbleUserAdmin );