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

13 lines
285 B
Python

from django.contrib import admin
from cookbook.ingredients.models import Category, Ingredient
@admin.register(Ingredient)
class IngredientAdmin(admin.ModelAdmin):
list_display = ("id", "name", "category")
list_editable = ("name", "category")
admin.site.register(Category)