From 50a9ed6298751b8d9295437d334150ae6a667384 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Fri, 13 Jan 2017 22:34:08 -0800 Subject: [PATCH] enable pubkey inline --- ttadmin/users/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ttadmin/users/admin.py b/ttadmin/users/admin.py index d2f8a49..186f127 100644 --- a/ttadmin/users/admin.py +++ b/ttadmin/users/admin.py @@ -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