Fix django ajax selects
[auf_rh_dae.git] / project / recrutement / admin.py
index 38dd9a3..1524e16 100644 (file)
@@ -37,7 +37,14 @@ IMPLANTATIONS_CENTRALES = [15, 19]
 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 OrderedChangeList(admin.views.main.ChangeList):