mirror of
https://github.com/correl/codereview.git
synced 2024-12-29 11:09:20 +00:00
14 lines
341 B
Python
14 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)
|