enable pubkey inline

pull/1/head
nathaniel smith 2017-01-13 22:34:08 -08:00
parent 620a91a657
commit 50a9ed6298
1 changed files with 5 additions and 1 deletions

View File

@ -2,11 +2,15 @@ from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from .models import Townie
from .models import Townie, Pubkey
admin.site.unregister(User)
admin.site.unregister(Group)
class PubkeyInline(admin.TabularInline):
model = Pubkey
@admin.register(Townie)
class TownieAdmin(admin.ModelAdmin):
inlines = [PubkeyInline]
pass