Add search ability to recette admin
This commit is contained in:
		
							parent
							
								
									4ae6001a08
								
							
						
					
					
						commit
						6719e8575c
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -34,6 +34,7 @@ class RecetteForm(forms.ModelForm):
 | 
			
		|||
@admin.register(Recette)
 | 
			
		||||
class RecetteAdmin(admin.ModelAdmin):
 | 
			
		||||
    list_display = ['nom', 'has_photo', 'has_photo_instr']
 | 
			
		||||
    search_fields = ['nom']
 | 
			
		||||
    form = RecetteForm
 | 
			
		||||
    save_on_top = True
 | 
			
		||||
    inlines = [IngredientInline]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue