from django.contrib import admin

from staticblocks.models import StaticBlock

class Admin(admin.ModelAdmin):
    list_display = ('name', 'content')

admin.site.register(StaticBlock, Admin)

@@ -183,8 +183,587 @@
  Admin)%0A
+%0A%0A# setup flatpages to use tiny_mce%0Afrom django import forms%0Afrom tinymce.widgets import TinyMCE%0Afrom django.contrib.flatpages.models import FlatPage%0Afrom django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld%0A%0Aclass FlatPageForm(forms.ModelForm):%0A    content = forms.CharField(widget=TinyMCE(attrs=%7B'cols': 80, 'rows': 30%7D))%0A    %0A    class Meta:%0A        model = FlatPage%0A%0Aclass FlatPageAdmin(FlatPageAdminOld):%0A    form = FlatPageForm%0A%0A# We have to unregister it, and then reregister%0Aadmin.site.unregister(FlatPage)%0Aadmin.site.register(FlatPage, FlatPageAdmin)%0A

use tinymce for flatpages