From b0a62e9db4ae69f34f1130be50918ee0a5146a76 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 19 Feb 2015 15:32:31 +0100 Subject: [PATCH] re-add student inlines to user admin --- teleforma/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/teleforma/admin.py b/teleforma/admin.py index 57e1d0af..e7660c50 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -17,6 +17,10 @@ class DiscountInline(admin.StackedInline): model = Discount extra = 1 +class StudentInline(admin.StackedInline): + model = Student + extra = 1 + class StudentAdmin(admin.ModelAdmin): model = Student exclude = ['options'] @@ -44,7 +48,7 @@ class ProfileInline(admin.StackedInline): model = Profile class UserProfileAdmin(UserAdmin): - inlines = [ProfileInline] + inlines = [ProfileInline, StudentInline] class TrainingAdmin(admin.ModelAdmin): model = Training -- 2.39.5