Skip to content

Commit

Permalink
Merge branch 'add_load_river_command' into new_contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Apr 29, 2024
2 parents 902561c + d4b75ca commit 7990b76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions georiviere/contribution/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from . import models


# The json schema is summarized on :
# https://github.com/Georiviere/Georiviere-admin/issues/139
# Depending on the category and type of the contributions, some fields are available or not.
Expand Down
1 change: 1 addition & 0 deletions georiviere/main/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ def ready(self):
from georiviere.river.models import Stream
for model in apps.get_models():
if issubclass(model, MapEntityMixin) and model != Stream:
print("signal for model {}".format(model))
post_save.connect(signals.save_objects_generate_distance_to_source, sender=model)
post_delete.connect(signals.delete_objects_remove_distance_to_source, sender=model)

0 comments on commit 7990b76

Please sign in to comment.