Skip to content

Commit

Permalink
set auto_converted propery of data types during conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jan 10, 2024
1 parent e455c91 commit de7e80c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hub/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def create_data_for_new_con(self, old_dt, df):
dt.area_type = self.new_con_at
dt.save()

dt.auto_converted = True
dt.save()

value_col = dt.value_col
for _, row in df.iterrows():
a = Area.objects.get(gss=row["PARL25"], area_type=self.new_con_at)
Expand Down

0 comments on commit de7e80c

Please sign in to comment.