Skip to content

Commit

Permalink
long lines shortened for build to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimawadhamid committed May 13, 2019
1 parent b72a376 commit c001ac8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cartoview/data_table/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def create_model_table(sender, instance, **kwargs):
if created:
pre_fields = [d[1] for d in instance.fields.stream_data]
module_name = 'fake_project.{}.no_models'.format(instance.name.lower())
model = DynamicModel.create_model(instance.name.capitalize(), instance.name, app_label='fake_app',
temp_fields = {f['name']: field_mapping[f['type']] for f in pre_fields}
model = DynamicModel.create_model(instance.name.capitalize(), instance.name,
app_label='fake_app',
module=module_name,
fields={f['name']: field_mapping[f['type']] for f in pre_fields})
fields=temp_fields)
DynamicModel.create_model_table(model)

0 comments on commit c001ac8

Please sign in to comment.