Skip to content

Commit

Permalink
Fixed problem where admin view allow tag names with spaces
Browse files Browse the repository at this point in the history
git-svn-id: https://django-tagging.googlecode.com/svn/trunk@156 83e7428b-ec2a-0410-86f2-bf466d0e5e72
  • Loading branch information
devcamcar committed Jul 8, 2009
1 parent de0a6af commit 0be1e9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion tagging/admin.py
@@ -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)




2 changes: 1 addition & 1 deletion tagging/forms.py
Expand Up @@ -8,7 +8,7 @@
from tagging.models import Tag
from tagging.utils import parse_tag_input

class AdminTagForm(forms.ModelForm):
class TagAdminForm(forms.ModelForm):
class Meta:
model = Tag

Expand Down

0 comments on commit 0be1e9e

Please sign in to comment.