mirror of https://github.com/interlegis/sapl.git
Edward
5 years ago
committed by
GitHub
11 changed files with 210 additions and 21 deletions
@ -0,0 +1,33 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.20 on 2019-10-15 13:33 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('base', '0037_auto_20190527_0901'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='AuditLog', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
|
('username', models.CharField(blank=True, db_index=True, max_length=100, verbose_name='username')), |
||||
|
('operation', models.CharField(db_index=True, max_length=1, verbose_name='operation')), |
||||
|
('timestamp', models.DateTimeField(db_index=True, verbose_name='timestamp')), |
||||
|
('object', models.CharField(blank=True, max_length=4096, verbose_name='object')), |
||||
|
('object_id', models.PositiveIntegerField(db_index=True, verbose_name='object_id')), |
||||
|
('model_name', models.CharField(db_index=True, max_length=100, verbose_name='model')), |
||||
|
('app_name', models.CharField(db_index=True, max_length=100, verbose_name='app')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'AuditLog', |
||||
|
'verbose_name_plural': 'AuditLogs', |
||||
|
'ordering': ('-id',), |
||||
|
}, |
||||
|
), |
||||
|
] |
@ -1,3 +1,7 @@ |
|||||
import django.dispatch |
import django.dispatch |
||||
|
|
||||
tramitacao_signal = django.dispatch.Signal(providing_args=['post', 'request']) |
tramitacao_signal = django.dispatch.Signal(providing_args=['post', 'request']) |
||||
|
|
||||
|
post_delete_signal = django.dispatch.Signal(providing_args=['instance', 'request']) |
||||
|
|
||||
|
post_save_signal = django.dispatch.Signal(providing_args=['instance', 'operation', 'request']) |
Loading…
Reference in new issue