-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Proof.ready_for_price_tag_validation boolean field. With specific…
… rule
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
open_prices/proofs/migrations/0009_proof_ready_for_price_tag_validation.py
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,25 @@ | ||
# Generated by Django 5.1.4 on 2024-12-26 16:37 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def init_ready_for_price_tag_validation(apps, schema_editor): | ||
Proof = apps.get_model("proofs", "Proof") | ||
Proof.objects.filter(type="PRICE_TAG", source__contains="/proofs/add/").update( | ||
ready_for_price_tag_validation=True | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("proofs", "0008_alter_proofprediction_type_pricetagprediction"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="proof", | ||
name="ready_for_price_tag_validation", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.RunPython(init_ready_for_price_tag_validation), | ||
] |
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