web/lib/tagging/admin.py
author ymh <ymh.work@gmail.com>
Mon, 31 May 2010 11:14:39 +0200
changeset 32 e28089cee66c
parent 11 f236caaceb43
permissions -rw-r--r--
update python env script
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
from django.contrib import admin
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from tagging.models import Tag, TaggedItem
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
from tagging.forms import TagAdminForm
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
class TagAdmin(admin.ModelAdmin):
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    form = TagAdminForm
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
admin.site.register(TaggedItem)
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
admin.site.register(Tag, TagAdmin)
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
f236caaceb43 add pois
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13