Skip to content

Commit

Permalink
Merge pull request #4 from agiliq/adminchange
Browse files Browse the repository at this point in the history
Added search and categoty field to admin
  • Loading branch information
krvc committed Jul 26, 2013
2 parents 6241531 + da3738b commit c047ac2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/admin.py
Expand Up @@ -4,7 +4,10 @@


class RecipeAdmin(admin.ModelAdmin):
list_display = ["name", "is_featured"]
list_display = ["name", "category", "is_featured"]
prepopulated_fields = {'slug': ('name',)}
search_fields = ['name']


admin.site.register(Recipe, RecipeAdmin)
admin.site.register(Category)

0 comments on commit c047ac2

Please sign in to comment.