|
|
@@ -12,6 +12,7 @@ from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
|
|
|
from django.contrib.contenttypes.models import ContentType
|
|
|
from django.dispatch import receiver
|
|
|
from gadjo.requestprovider.signals import get_request
|
|
|
+from sorl.thumbnail.kvstores.cached_db_kvstore import KVStore
|
|
|
|
|
|
|
|
|
#Изделия
|
|
|
@@ -213,6 +214,7 @@ def after_save(*args, **kwargs):
|
|
|
instance = kwargs['instance']
|
|
|
if isinstance(instance, LogEntry): return
|
|
|
if isinstance(instance, Session): return
|
|
|
+ if isinstance(instance, KVStore): return
|
|
|
log_entry = construct_log_entry(**kwargs)
|
|
|
created = kwargs['created']
|
|
|
log_entry['action_flag'] = ADDITION if created else CHANGE
|