-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dépôt de besoin] Conservation des données des dépôts abandonnés (#938)
* keep steps data * add admin for tender steps data * add tests to check steps data * hide personal data * set right permissions * clean step datas after publication * also remove steps data in csrf way * add FIELDS_TO_REDACT list to model
- Loading branch information
1 parent
b6b8223
commit 1a1df29
Showing
6 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated by Django 4.2.2 on 2023-10-09 13:35 | ||
|
||
import django.utils.timezone | ||
from django.db import migrations, models | ||
from django_extensions.db.fields import ShortUUIDField | ||
from shortuuid import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("tenders", "0057_alter_tender_siae_transactioned"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="TenderStepsData", | ||
fields=[ | ||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
( | ||
"uuid", | ||
ShortUUIDField( | ||
auto_created=True, | ||
blank=True, | ||
db_index=True, | ||
default=uuid, | ||
editable=False, | ||
unique=True, | ||
verbose_name="Identifiant UUID", | ||
), | ||
), | ||
( | ||
"created_at", | ||
models.DateTimeField(default=django.utils.timezone.now, verbose_name="Date de création"), | ||
), | ||
("updated_at", models.DateTimeField(auto_now=True, verbose_name="Date de modification")), | ||
("steps_data", models.JSONField(default=list, editable=False, verbose_name="Données des étapes")), | ||
], | ||
options={ | ||
"verbose_name": "Besoin d'achat - Données des étapes", | ||
"verbose_name_plural": "Besoins d'achat - Données des étapes", | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters