Skip to content

Conversation

@Fredrikaaa
Copy link
Contributor

@Fredrikaaa Fredrikaaa commented Oct 5, 2021

Implemented an email form for events. Allowing organizers to easily send email updates to everyone who signed up.

@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #378 (9f0e44a) into dev (98c8eda) will decrease coverage by 10.72%.
The diff coverage is 46.03%.

❗ Current head 9f0e44a differs from pull request most recent head f0113d5. Consider uploading reports for the commit f0113d5 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##              dev     #378       +/-   ##
===========================================
- Coverage   83.25%   72.52%   -10.73%     
===========================================
  Files         116      114        -2     
  Lines        3607     3531       -76     
===========================================
- Hits         3003     2561      -442     
- Misses        604      970      +366     
Impacted Files Coverage Δ
news/urls.py 100.00% <ø> (ø)
news/views.py 71.04% <44.44%> (-16.65%) ⬇️
news/forms.py 66.10% <48.14%> (-30.78%) ⬇️
docs/urls.py 0.00% <0.00%> (-100.00%) ⬇️
docs/converters.py 0.00% <0.00%> (-80.00%) ⬇️
docs/views.py 0.00% <0.00%> (-79.25%) ⬇️
docs/forms.py 0.00% <0.00%> (-76.93%) ⬇️
news/templatetags/event_tags.py 50.00% <0.00%> (-50.00%) ⬇️
make_queue/views/reservation/calendar.py 54.54% <0.00%> (-45.46%) ⬇️
news/ical.py 46.66% <0.00%> (-42.23%) ⬇️
... and 58 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98c8eda...f0113d5. Read the comment docs.

@Fredrikaaa Fredrikaaa changed the base branch from master to dev October 12, 2021 14:18
# Conflicts:
#	news/forms.py
#	news/templates/news/admin_event_ticket_list.html
#	news/views.py
Copy link
Member

@mahoyen mahoyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Some comments :)

{{ form.content }}
</div>
<input class="ui yellow right floated submit button" type="submit" value="{% trans "Send" %}">
<a href="{% block cancel-url %}{% url "admin-event" form.instance.id %}{% endblock %}" class="ui red right floated button">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the name to the endblock and change the naming style as well.(relevant section)

Suggested change
<a href="{% block cancel-url %}{% url "admin-event" form.instance.id %}{% endblock %}" class="ui red right floated button">
<a href="{% block cancel_url %}{% url "admin-event" form.instance.id %}{% endblock cancel_url %}" class="ui red right floated button">

Comment on lines +83 to +87
if not event and not time_place:
raise forms.ValidationError("Event and timeplace cannot both be None.")
if event and time_place:
raise forms.ValidationError("Event and timeplace cannot both be set.")
return cleaned_data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is nice if you have add tests that verify that the validation works as intended. I can help in a worksession if you'd like.

Fredrikaaa and others added 6 commits October 19, 2021 17:16
…ultiperiod.py

Fieldname "multiperiod" in model ReservationRule renamed to "multi-period".
Co-authored-by: Markus Ho-Yen <32592450+mahoyen@users.noreply.github.com>
I'm not certain if this migration has a function or why it was created, but migration nr 21 depends on this one..
second attempt at fixing dependency.
@ddabble ddabble mentioned this pull request Mar 29, 2022
@ddabble ddabble deleted the branch main September 7, 2025 19:48
@ddabble ddabble closed this Sep 7, 2025
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in web Sep 7, 2025
@ddabble ddabble reopened this Sep 7, 2025
@ddabble ddabble changed the base branch from dev to main September 7, 2025 19:58
@ddabble
Copy link
Member

ddabble commented Sep 7, 2025

Did an oopsie - see #758 for context :)

@ddabble ddabble moved this from Done to Ready for Review in web Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

4 participants