Skip to content
Snippets Groups Projects
Commit 6bffc65f authored by Carlos Vega's avatar Carlos Vega
Browse files

more flexibility by allowing null table and row. Added optional field...

more flexibility by allowing null table and row. Added optional field request_path to store the path that produced the provenance whenever available
parent fed75040
No related branches found
No related tags found
1 merge request!266Resolve "Record who exports information and restrict who can export info."
# Generated by Django 2.0.13 on 2020-11-05 11:42
import django.core.files.storage
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0172_auto_20200525_1246'),
]
operations = [
migrations.AlterField(
model_name='provenance',
name='modified_table',
field=models.CharField(max_length=1024, null=True, verbose_name='Modified table'),
),
migrations.AlterField(
model_name='provenance',
name='modified_table_id',
field=models.IntegerField(default=0, null=True, verbose_name='Modified table row'),
)
]
# Generated by Django 2.0.13 on 2020-11-05 11:57
import django.core.files.storage
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0173_auto_20201105_1142'),
]
operations = [
migrations.AddField(
model_name='provenance',
name='request_path',
field=models.CharField(blank=True, max_length=20480, null=True, verbose_name='Request Path'),
)
]
......@@ -10,10 +10,10 @@ class Provenance(models.Model):
modified_table = models.CharField(max_length=1024,
verbose_name='Modified table',
blank=False, null=False
blank=False, null=True
)
modified_table_id = models.IntegerField(default=0, verbose_name='Modified table row', blank=False, null=False)
modified_table_id = models.IntegerField(default=0, verbose_name='Modified table row', blank=False, null=True)
modification_date = models.DateTimeField(
verbose_name='Modified on',
......@@ -42,4 +42,9 @@ class Provenance(models.Model):
modification_description = models.CharField(max_length=20480,
verbose_name='Description',
blank=False, null=False
)
\ No newline at end of file
)
request_path = models.CharField(max_length=20480,
verbose_name='Request Path',
blank=True, null=True
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment