]> git.parisson.com Git - teleforma.git/commitdiff
add quotas to user inline
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 18 Jul 2015 14:01:26 +0000 (16:01 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 18 Jul 2015 14:01:26 +0000 (16:01 +0200)
teleforma/admin.py

index eedc27cc306dfb399bd120cbd12557813334ae00..b856af450ee930f0f5831a7c5689218694c574c4 100644 (file)
@@ -2,6 +2,7 @@
 from teleforma.models import *
 from teleforma.views import *
 from teleforma.exam.models import *
+from teleforma.exam.admin import *
 from teleforma.templatetags.teleforma_tags import to_recipients
 from django.contrib import admin
 from django.contrib.auth.models import User
@@ -113,7 +114,7 @@ class ProfileInline(admin.StackedInline):
     model = Profile
 
 class UserProfileAdmin(UserAdmin):
-    inlines = [ProfileInline, StudentInline]
+    inlines = [ProfileInline, StudentInline, QuotaInline]
     search_fields = ['username', 'email']
 
 class TrainingAdmin(admin.ModelAdmin):