Default: ()
List of models for logging by label: 'app.Model'.
Default: ('admin.LogEntry', 'migrations.Migration', 'sessions.Session',
'contenttypes.ContentType', 'captcha.CaptchaStore')
List of models for exclude from logging by label: 'app.Model'.
Default:
('id', 'last_login', 'password', 'created_at', 'updated_at')
List of field names which not track.
If you need to define which fields to track for concrete model, you can add
one of the properties to model: simple_log_fields = ('id',)
or
simple_log_exclude_fields = ('password',)
.
Default: 'Anonymous'
User representation that write to log, if anonymous user changes model.
Default: 'System'
User representation that write to log, if user not detected (If middleware not working or if model changes from task or console).
Default: 'simple_log.SimpleLog'
Model for writing logs. If you want to define your own model, you should
inheritance from simple_log.SimpleLogAbstract
and change this setting.
Default: 'simple_log.models.ModelSerializer'
Class for serializing model fields to json.
Default: 'simple_log.utils.get_current_request_default'
Function that return current request. Rewrite this setting if you already have middleware for storing current request.
Default: '_old_instance'
Name of attribute for storing old instance of logging object.
Default: False
Link related logs.
Default: False
Track one to many fields.
Default: False
Save content type of proxy model, instead of base.
Default: False
Save only changed fields.
Default: None
Format for datetime fields.
Default: None
Format for date fields.
Default: None
Format for time fields.
Default: True
Save file name only instead of path to file.
Default: False
Don't create log entry if signal is raw (e. g. load data from fixtures).
Default: True
Enable/disable log, useful for testing.