File: admin.py

package info (click to toggle)
django-graphene 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,996 kB
  • sloc: javascript: 25,534; python: 11,992; makefile: 233; sh: 4
file content (12 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
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)