#9454: Typos and suggestions regarding the porting howto
------------------------------------+---------------------------------------
Reporter: egenix_viktor | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.0
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by egenix_viktor):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
The porting HOWTO does not mention that the `js` attribute won't work any
more for the `Admin` classes, but they should be moved into the new nested
class `Media`. It is mentioned in the newforms documentation, however. It
affects the application only if it has any custom scripts for the admin
interface, like the ones required to integrate FCKEditor or TinyMCE for
easy HTML authoring.
Instead of:
{{{
class ContentAdmin(admin.ModelAdmin):
...
js = ('/media/fckeditor/fckeditor.js',
'/media/js/admin_content.js')
}}}
You have to write:
{{{
class ContentAdmin(admin.ModelAdmin):
...
class Media:
js = ('/media/fckeditor/fckeditor.js',
'/media/js/admin_content.js')
}}}
So you have such a nested class structure as before.
--
Ticket URL: <http://code.djangoproject.com/ticket/9454#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---