from django.contrib import admin
from django.db import models
from sample_project.article.models import Post

import file_picker


class PostAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.TextField: {
            'widget': file_picker.widgets.FilePickerWidget(pickers={
                'image': "images",
                'file': "files",
            }),
        },
    }

    class Media:
        css = {"all": ("css/filepicker.overlay.css",)}
        js = ("https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",
              "http://cdn.jquerytools.org/1.2.2/tiny/jquery.tools.min.js",
              "js/overlay.apple.min.js",
              "js/ajaxupload.js",
              "js/jquery.filepicker.js",
              "js/jquery.filepicker.simple.js",)

admin.site.register(Post, PostAdmin)


@@ -476,90 +476,8 @@
  = (
-%22https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js%22,%0A              
 %22htt
@@ -508,14 +508,14 @@
 1.2.
-2/tiny
+5/full
 /jqu
@@ -537,49 +537,8 @@
 s%22,%0A
-              %22js/overlay.apple.min.js%22,%0A
     

use latest cdn in example project