mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +03:00
775d2e3523
* Update travis and tox * Use xenial distribution * Don't install coveralls twice * Add black and flake8 tox commands * Remove Python 3.5 test for Django master * Fix indent * Ignore migrations * Remove black for now * Run black formatting (#668) * Run black format * Update makefile * Add black to travis build
13 lines
285 B
Python
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)
|