Changes between Version 18 and Version 19 of AddWYSIWYGEditor


Ignore:
Timestamp:
07/09/08 11:58:11 (7 years ago)
Author:
Martin Diers <martin@…>
Comment:

cleanup on newforms-admin example

Legend:

Unmodified
Added
Removed
Modified
  • AddWYSIWYGEditor

    v18 v19  
    7777{{{
    7878#!python
    79 from django import newforms as forms
     79from django.newforms import ModelForm
    8080
    81 class PageFormWithMedia(forms.ModelForm)
     81class TinyMCEPageForm(ModelForm)
    8282    class Media:
    8383        js = ('/js/tiny_mce/tiny_mce.js',
    8484              '/js/tiny_mce/textarea.js',)
    8585
    86     class Meta:
    87         model = MyModel
    88 
    8986class MyModelOptions(admin.ModelAdmin):
    90     form = PageFormWithMedia
     87    form = TinyMCEPageForm
    9188
    9289admin.site.register(MyModel, MyModelOptions)
Back to Top