svthalia / concrexit

Thalia Website built on Django.
https://thalia.nu
Other
23 stars 11 forks source link

Re-enable HTML in registration status message #3617

Closed ColonelPhantom closed 3 months ago

ColonelPhantom commented 4 months ago

Closes #3515.

Summary

Fairly trivial, bleach the registration status message so that e.g. links here work again

How to test

  1. Create an event without registrations
  2. Set the message so that it contains a link
  3. Observe that the link appears in the browser
ColonelPhantom commented 4 months ago

One note, the only message that can be modified is the one for when there are no registrations possible. Optional registrations for example do not show this message, because it seems #2458 did not actually add the new fields to the admin :facepalm:

ColonelPhantom commented 4 months ago

I fixed the above by just getting rid of HTML in the message on the calendar (to prevent links appearing inside which seems annoying).

In addition, I added the other fields to the admin, since I did not do this in the past.