This commit is contained in:
Mohamed Nouffer
2022-03-23 11:40:32 +05:30
parent 0520e1ed04
commit 808e1fc74f

View File

@ -387,7 +387,8 @@ def publish_date(sender, instance, created, **kwargs):
mdl = apps.get_model(app_label="rog", model_name=LAYER_CHOICES[instance.layerof -1][1]) mdl = apps.get_model(app_label="rog", model_name=LAYER_CHOICES[instance.layerof -1][1])
print(mdl) print(mdl)
print(f"#### instance.layerof - {instance.layerof}") print(f"#### instance.layerof - {instance.layerof}")
with open(csv_f, 'r') as txt_file: with open(csv_f, mode="r", encoding="utf-8") as txt_file:
#heading = next(txt_file)
reader = csv.reader(txt_file, delimiter=",") reader = csv.reader(txt_file, delimiter=",")
for fields in reader: for fields in reader:
print("@@@@@@@@@@@@") print("@@@@@@@@@@@@")