diff gpp/smiley/admin.py @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children 3ae999b0c53b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/smiley/admin.py	Mon Apr 06 02:43:12 2009 +0000
@@ -0,0 +1,11 @@
+"""
+This file contains the automatic admin site definitions for the Smiley models.
+"""
+
+from django.contrib import admin
+from smiley.models import Smiley
+
+class SmileyAdmin(admin.ModelAdmin):
+    list_display = ('title', 'code', 'html')
+
+admin.site.register(Smiley, SmileyAdmin)