diff --git a/RIGS/models.py b/RIGS/models.py index 1dadda85..7efab922 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -712,7 +712,7 @@ def activity_feed_string(self): return f"payment of £{self.amount}" -def validate_url(value, requirement): +def validate_url(value): if not value: return # Required error is done the field obj = urlparse(value) diff --git a/RIGS/templates/event_form.html b/RIGS/templates/event_form.html index 180f491c..fd1b462b 100644 --- a/RIGS/templates/event_form.html +++ b/RIGS/templates/event_form.html @@ -347,9 +347,11 @@

Paste URL

{% render_field form.forum_url class+="form-control" %} + {% if object.pk %}

or

- + + {% endif %}
diff --git a/RIGS/templates/partials/event_details.html b/RIGS/templates/partials/event_details.html index ceb12152..6d7a249d 100644 --- a/RIGS/templates/partials/event_details.html +++ b/RIGS/templates/partials/event_details.html @@ -79,10 +79,10 @@ {% endif %}
Forum Thread
- {% if event.forum_url %} -
{{event.forum_url}}
+ {% if object.forum_url %} +
{{object.forum_url}}
{% else %} - {% endif %}