Closed Gunvor4 closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.15%. Comparing base (
54d6901
) to head (74b3839
). Report is 4 commits behind head on dev.
The help text also need to be updated in the member model, the discord field in the Django admin panel still asks for the username to include the hashtag and the numbers
Did you remember to run makemigrations
? These changes to the model will necessarily create a new migration :p None of the changes affect the database schema in any way, though, so I think it's better to simply remove help_text
(and validators
, re: my comment above) from the internal
migrations 0015 and 0024 - which are the only ones that include those arguments of the discord_username
field 🙂
We can also remove the translation strings for the previous help_text
(and discord_username_validator
) from django.po
; recompiling django.mo
shouldn't be necessary, though it won't hurt :)
Did you remember to run
makemigrations
? These changes to the model will necessarily create a new migration :p None of the changes affect the database schema in any way, though, so I think it's better to simply removehelp_text
(andvalidators
, re: my comment above) from theinternal
migrations 0015 and 0024 - which are the only ones that include those arguments of thediscord_username
field 🙂We can also remove the translation strings for the previous
help_text
(anddiscord_username_validator
) fromdjango.po
; recompilingdjango.mo
shouldn't be necessary, though it won't hurt :)
Done and done :-)
Proposed changes
Removed the regex validating Discord usernames, since Discord somewhat recently changed their username format (see https://discord.com/blog/usernames and https://support.discord.com/hc/en-us/articles/12620128861463-New-Usernames-Display-Names). Also removed the
help_text
explaining the old username format.Areas to review closely
Checklist
(If any of the points are not relevant, mark them as checked)
makemigrations
,makemessages
andcompilemessages
management commands and committed any changes that should be included in this PR