Skip to content

Commit

Permalink
Add docstring for LaxURLField
Browse files Browse the repository at this point in the history
  • Loading branch information
cuu508 committed Jan 30, 2025
1 parent af0ff51 commit a965cee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hc/front/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def _choices(csv: str) -> list[tuple[str, str]]:


class LaxURLField(forms.URLField):
"""Subclass of URLField which additionally accepts URLs without a tld.
For example, unlike URLField, it accepts "http://home_server"
"""

default_validators = [WebhookValidator()]


Expand Down

0 comments on commit a965cee

Please sign in to comment.