Mercurial > public > sg101
view smiley/admin.py @ 738:df2799f725d8
For #60, fix last commit (775e7f7) which produced UnicodeDecodeErrors.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 13 Dec 2013 21:00:24 -0600 |
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)