show authz stuff in admin
parent
c73c56f293
commit
84850e1a84
|
@ -4,9 +4,6 @@ from django.contrib.auth.models import Group
|
||||||
|
|
||||||
from .models import Townie, Pubkey
|
from .models import Townie, Pubkey
|
||||||
|
|
||||||
admin.site.unregister(User)
|
|
||||||
admin.site.unregister(Group)
|
|
||||||
|
|
||||||
class PubkeyInline(admin.TabularInline):
|
class PubkeyInline(admin.TabularInline):
|
||||||
model = Pubkey
|
model = Pubkey
|
||||||
extra = 1
|
extra = 1
|
||||||
|
@ -23,6 +20,6 @@ class TownieAdmin(admin.ModelAdmin):
|
||||||
inlines = [PubkeyInline]
|
inlines = [PubkeyInline]
|
||||||
list_display = ('username', 'reviewed', 'email')
|
list_display = ('username', 'reviewed', 'email')
|
||||||
ordering = ('reviewed',)
|
ordering = ('reviewed',)
|
||||||
exclude = ('first_name', 'last_name', 'password', 'groups', 'user_permissions', 'last_login')
|
exclude = ('first_name', 'last_name', 'password', 'groups', 'user_permissions', 'last_login', 'is_staff', 'is_active', 'is_superuser')
|
||||||
actions = (bulk_review,)
|
actions = (bulk_review,)
|
||||||
search_fields = ('username', 'email', 'displayname')
|
search_fields = ('username', 'email', 'displayname')
|
||||||
|
|
Loading…
Reference in New Issue