comparison core/admin.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/core/admin.py@48b221d304c6
children
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 from django.contrib import admin
2 from django.contrib.flatpages.models import FlatPage
3 from django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld
4 from django.conf import settings
5
6 class FlatPageAdmin(FlatPageAdminOld):
7 class Media:
8 js = settings.GPP_THIRD_PARTY_JS['tiny_mce']
9
10 # We have to unregister it, and then reregister
11 admin.site.unregister(FlatPage)
12 admin.site.register(FlatPage, FlatPageAdmin)