mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 18:08:01 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			279 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			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]
 |