graphene-django/examples/cookbook-plain/cookbook/recipes/admin.py
ariel1899 96110b05bb Revert "Fixing pylint"
This reverts commit e75c5845
2020-04-16 15:43:43 -04:00

13 lines
279 B
Python

from django.contrib import admin
from cookbook.recipes.models import Recipe, RecipeIngredient
class RecipeIngredientInline(admin.TabularInline):
model = RecipeIngredient
@admin.register(Recipe)
class RecipeAdmin(admin.ModelAdmin):
inlines = [RecipeIngredientInline]