Skip to content

Commit

Permalink
use internal triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Apr 11, 2024
1 parent 93bf9ba commit 7f8d61c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion georiviere/main/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def save_objects_generate_distance_to_source(sender, instance, **kwargs):
).exclude(stream__in=streams).delete()

elif hasattr(instance, 'topology'):
raise Exception("yes")
stream = annotate_distance_to_source(Stream.objects.all(), instance).get(pk=instance.topology.stream_id)
DistanceToSource.objects.update_or_create(
object_id=instance.pk,
Expand Down

0 comments on commit 7f8d61c

Please sign in to comment.