diff --git a/Steps/offline developing Django App.sh b/Steps/offline developing Django App.sh index 86f56f6..35f5c02 100644 --- a/Steps/offline developing Django App.sh +++ b/Steps/offline developing Django App.sh @@ -1019,5 +1019,10 @@ class CommentsInline(admin.TabularInline): model = Comment fields = ['author', 'body', 'stars', 'active'] +class ProductAdmin(admin.ModelAdmin): + ... + inlines = [ + CommentsInline, + ]