forked from brosner/django-tagging
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed problem where admin view allow tag names with spaces
git-svn-id: https://django-tagging.googlecode.com/svn/trunk@156 83e7428b-ec2a-0410-86f2-bf466d0e5e72
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
from django.contrib import admin | ||
from tagging.models import Tag, TaggedItem | ||
from tagging.forms import TagAdminForm | ||
|
||
class TagAdmin(admin.ModelAdmin): | ||
form = TagAdminForm | ||
|
||
admin.site.register(TaggedItem) | ||
admin.site.register(Tag) | ||
admin.site.register(Tag, TagAdmin) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters