This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
177 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
from django.db.models.signals import post_save | ||
from django.dispatch import receiver | ||
# from django.db.models.signals import post_save | ||
# from django.dispatch import receiver | ||
|
||
from content.models import DataImport | ||
from country.tasks import store_in_temp_table | ||
# from content.models import DataImport | ||
# from country.tasks import store_in_temp_table | ||
|
||
|
||
@receiver(post_save, sender=DataImport) | ||
def validation_and_temp_table_store(sender, created, instance, *args, **kwargs): | ||
if created: | ||
print("Data validation and temp table storage task started!") | ||
store_in_temp_table.apply_async(args=(instance.id,), queue="covid19") | ||
# # @receiver(post_save, sender=DataImport) | ||
# # def validation_and_temp_table_store(sender,created ,instance, *args, **kwargs): | ||
# # if created: | ||
# # print("Data validation and temp table storage task started!") | ||
# # store_in_temp_table.apply_async(args=(a.id,), queue='covid19') |
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,25 @@ | ||
# Generated by Django 3.1.2 on 2021-03-25 10:31 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("country", "0027_redflag_implemented"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="tender", | ||
name="temp_table_id", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="tenders", | ||
to="country.tempdataimporttable", | ||
), | ||
), | ||
] |
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,23 @@ | ||
# Generated by Django 3.1.2 on 2021-03-25 11:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("country", "0028_tender_temp_table_id"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="goodsservices", | ||
name="ppu_including_vat", | ||
field=models.CharField(max_length=1500, null=True, verbose_name="Price per units including VAT"), | ||
), | ||
migrations.AddField( | ||
model_name="goodsservices", | ||
name="quantity_units", | ||
field=models.CharField(max_length=1500, null=True, verbose_name="Quantity,units"), | ||
), | ||
] |
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
Oops, something went wrong.