Mercurial > public > sg101
view smiley/admin.py @ 656:79e785f0bdad
For issue #38, change IRC bot to use Redis instead of MySQL.
Also deleting the bot from this repo as it now has its own repo.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 May 2013 15:22:45 -0500 |
parents | ee87ea74d46b |
children |
line wrap: on
line source
""" 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', 'is_extra') list_filter = ('is_extra', ) admin.site.register(Smiley, SmileyAdmin)