mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-10-31 07:57:31 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			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)
 |