class Admin:
    js = [url,]

django always translate url to 'admin_media/'+url

I think

  if url.startswith('http://'):
      url
  else:
      'media/'+url

is better.

OR always translate url to 'custom_media/'+url  ,

because this *IS* custom js.

I just want to use FCKEditor to replace a TextField, and i wonder if
there is other way to do that.


by the way, i think we need a PasswordField which display two textbox
(password and confirm) in admin page.
and is there some documents on how to write custom field ? I read
source and found two base class: django.forms.FormField and
django.db.models.Field , i'm confused with them.

thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to