Skip to content

Commit

Permalink
Merge pull request #4329 from noelmartinon/noelmartinon-patch-loadinf…
Browse files Browse the repository at this point in the history
…rastructure-condition

Fix 'loadinfrastructure' condition adding to infra without 'eid-field' option
  • Loading branch information
Chatewgne authored Oct 17, 2024
2 parents b5da9e4 + 0c5b553 commit 3499349
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ def create_infrastructure(self, geometry, name, type, category, use_structure,
self.stdout.write("Update : %s with eid %s" % (name, eid))
else:
infra = Infrastructure.objects.create(**fields_without_eid)
if condition_type:
infra.conditions.add(condition_type)
if settings.TREKKING_TOPOLOGY_ENABLED:
try:
geometry.coord_dim = 2
Expand Down

0 comments on commit 3499349

Please sign in to comment.