Skip to content

Commit

Permalink
fix: assume https for URLField
Browse files Browse the repository at this point in the history
removes deprecation warning
  • Loading branch information
paulschreiber committed Dec 13, 2023
1 parent 10fd138 commit 5029246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraso_backend/apps/shared_data/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@

class DataEntryForm(forms.ModelForm):
data_file = forms.FileField()
url = forms.URLField(required=False)
# TODO: Remove assume_scheme='https' when Django 6.0 is released.
# At that point, https will be the default.
url = forms.URLField(required=False, assume_scheme="https")
resource_type = forms.CharField(max_length=255, required=False)
size = forms.IntegerField(required=False)

Expand Down

0 comments on commit 5029246

Please sign in to comment.