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.
[x] Added temp_table_id in tender table [x] Added quantity and unit_price in goodsservices [x] Added psycopg2==2.8.6 in requirement.txt file [x] formatting applied [x] Formatted in black [x] Aded auto_optimize in serializer for optimization [x] Resolved merge request issues
- Loading branch information
Showing
12 changed files
with
188 additions
and
86 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 |
---|---|---|
|
@@ -47,3 +47,6 @@ erl_crash.dump | |
# Deployment scripts used by Young Innovations | ||
/script.sh | ||
/deploy.sh | ||
|
||
#Pycharm | ||
*.idea/ |
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.