Skip to content

Commit

Permalink
Updated admin.py
Browse files Browse the repository at this point in the history
- added the slug to the list_display
- added search_fields
  • Loading branch information
epicserve committed Jul 19, 2012
1 parent 5349763 commit 87e64ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion taggit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
class TaggedItemInline(admin.StackedInline):
model = TaggedItem


class TagAdmin(admin.ModelAdmin):
list_display = ["name"]
list_display = ("name", 'slug')
search_fields = ('name', 'slug')
inlines = [
TaggedItemInline
]
Expand Down

0 comments on commit 87e64ea

Please sign in to comment.