This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
2015-04-09 15:35:38 +00:00
|
|
|
# coding: utf-8
|
|
|
|
|
|
|
|
# django
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
# app
|
2015-04-13 13:33:40 +00:00
|
|
|
from .models import QuestionAnswerCategory, QuestionAnswer
|
2015-04-09 15:35:38 +00:00
|
|
|
|
|
|
|
|
2015-04-13 13:33:40 +00:00
|
|
|
class QuestionAnswerInline(admin.TabularInline):
|
|
|
|
model = QuestionAnswer
|
2015-04-09 15:35:38 +00:00
|
|
|
|
2015-04-13 13:33:40 +00:00
|
|
|
class QuestionAnswerCategoryAdmin(admin.ModelAdmin):
|
|
|
|
inlines = (QuestionAnswerInline, )
|
2015-04-09 15:35:38 +00:00
|
|
|
|
|
|
|
|
2015-04-13 13:33:40 +00:00
|
|
|
admin.site.register(QuestionAnswerCategory, QuestionAnswerCategoryAdmin)
|