mirror of
https://github.com/correl/codereview.git
synced 2025-01-01 11:03:17 +00:00
15 lines
341 B
Python
15 lines
341 B
Python
|
from codereview.review.models import *
|
||
|
from django.contrib import admin
|
||
|
|
||
|
class CommentInline(admin.StackedInline):
|
||
|
model = Comment
|
||
|
class ItemInline(admin.StackedInline):
|
||
|
model = Item
|
||
|
inlines = [CommentInline]
|
||
|
|
||
|
class ReviewAdmin(admin.ModelAdmin):
|
||
|
inlines = [
|
||
|
ItemInline
|
||
|
]
|
||
|
admin.site.register(Review, ReviewAdmin)
|