date range filter
[auf_rh_dae.git] / src / auf.django.metadata / auf / django / metadata / admin.py
index 3868c27..e798ccf 100755 (executable)
@@ -43,14 +43,6 @@ class AUFMetadataAdminMixin(object):
             obj.date_creation = datetime.datetime.now()
         obj.user_modification = request.user
         obj.date_modification = datetime.datetime.now()
-        initial = getattr(form, 'initial', None)
-        if initial:
-            if form.initial['actif'] is True and obj.actif is False:
-                obj.user_desactivation = request.user
-                obj.date_desactivation = datetime.datetime.now()
-            if form.initial['actif'] is False and obj.actif is True:
-                obj.user_activation = request.user
-                obj.date_activation = datetime.datetime.now()
         obj.save()
 
     def has_metadata(self, instance):