Skip to content

Commit

Permalink
add contributions by station endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Apr 26, 2024
1 parent 558d764 commit 370a859
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion georiviere/portal/serializers/contribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ class CustomContributionSerializer(serializers.ModelSerializer):

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
custom_type = self.context.get("custom_type")
custom_type = self.context.get("custom_type", None)
if not custom_type:
return

# add and customize fields from json schema
schema = custom_type.get_json_schema_form()
Expand Down

0 comments on commit 370a859

Please sign in to comment.