actif
authorOlivier Larchevêque <olivier.larcheveque@auf.org>
Wed, 8 Feb 2012 21:31:51 +0000 (16:31 -0500)
committerOlivier Larchevêque <olivier.larcheveque@auf.org>
Wed, 8 Feb 2012 21:31:51 +0000 (16:31 -0500)
src/auf.django.metadata/auf/django/metadata/admin.py
src/auf.django.metadata/auf/django/metadata/models.py

index e798ccf..bae1d3d 100755 (executable)
@@ -11,15 +11,11 @@ AUF_METADATA_READONLY_FIELDS = ('supprime',
                        'user_creation',
                        'date_modification',
                        'user_modification',
-                       'date_activation',
-                       'user_activation',
-                       'date_desactivation',
-                       'user_desactivation', )
+                        )
 
 AUF_METADATA_FIELDSET_FIELDS = ('date_creation', 'user_creation',
                        'date_modification', 'user_modification',
-                       'date_activation', 'user_activation',
-                       'date_desactivation', 'user_desactivation',)
+                        )
 
 class AUFMetadataInlineAdminMixin(object):
     exclude = AUF_METADATA_READONLY_FIELDS
index fde182d..f66f6ce 100755 (executable)
@@ -19,14 +19,6 @@ class AUFMetadata(models.Model):
     user_modification = models.ForeignKey('auth.User', verbose_name=u"Modifié par",
                             db_column='user_modification', related_name='+',
                             null=True, blank=True)
-    date_activation = models.DateTimeField(null=True, blank=True, verbose_name=u"Date d'activation",)
-    user_activation = models.ForeignKey('auth.User',  verbose_name=u"Activé par",
-                            db_column='user_activation', related_name='+',
-                            null=True, blank=True)
-    date_desactivation = models.DateTimeField(null=True, blank=True, verbose_name=u"Date de désactivation",)
-    user_desactivation = models.ForeignKey('auth.User', verbose_name=u"Désactivé par", 
-                            db_column='user_desactivation', related_name='+',
-                            null=True, blank=True)
 
     objects = NoDeleteManager()
     actifs = ActifsManager()