fix python2.5 et dependance json
[auf_rh_dae.git] / project / dae / views.py
index b1eb482..d415183 100644 (file)
@@ -1,7 +1,7 @@
 # -*- encoding: utf-8 -*-
 from collections import defaultdict
 from datetime import date
-from json import dumps
+from simplejson import dumps
 import warnings
 
 from django.http import Http404, HttpResponse
@@ -158,9 +158,9 @@ def embauche(request, key=None, dossier=None):
             if 'save' in request.POST:
                 if employe_form.is_valid():
                     data = dict(request.POST.items())
-                    with warnings.catch_warnings():
-                        warnings.simplefilter('ignore')
-                        employe = employe_form.save()
+                    #with warnings.catch_warnings():
+                    #    warnings.simplefilter('ignore')
+                    employe = employe_form.save()
                     data['employe'] = 'dae-%s' % employe.id
                     employe_form = EmployeForm(data, instance=employe)