Fix django ajax selects
[auf_rh_dae.git] / project / dae / admin.py
index 0146b7d..32576e9 100644 (file)
@@ -13,7 +13,14 @@ from project.dae.models import Poste, Dossier
 class BaseAdmin(admin.ModelAdmin):
 
     class Media:
-        css = {'screen': ('css/admin_custom.css',)}
+        css = {'screen': (
+            'css/admin_custom.css',
+            'jquery-autocomplete/jquery.autocomplete.css',
+        )}
+        js = (
+            'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',
+            'jquery-autocomplete/jquery.autocomplete.min.js',
+        )
 
 
 class PosteAdmin(BaseAdmin, VersionAdmin):