Python
- 1 ответ
- 0 вопросов
0
Вклад в тег
from django.contrib import admin
from models import Colors, Products
class ColorsInLine(admin.StackedInline):
model = Colors
@admin.register(Products)
class ProductsAdmin(admin.ModelAdmin):
inlines = [ColorsInLine,]