mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-27 07:06:03 +01:00
Move URLs out of translatable strings
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ class InviteSettingsForm(forms.ModelForm):
|
||||
invite_url = cleaned_data.get('invite_url')
|
||||
if invite_url:
|
||||
if not invite_url.startswith("https://"):
|
||||
self.add_error('invite_url', _("Invite URL must start with 'https://'."))
|
||||
self.add_error('invite_url', _("Invite URL must start with %(prefix)s.") % {'prefix': "'https://'"})
|
||||
if not invite_url.endswith("/invite/"):
|
||||
self.add_error('invite_url', _("Invite URL must end with '/invite/'."))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user