Skip to content

Commit ead2ef6

Browse files
committed
tests: fix DeprecationWarning: invalid escape sequence \w
1 parent ce58006 commit ead2ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ class Migration(migrations.Migration):
578578
('password', models.CharField(max_length=128, verbose_name='password')),
579579
('last_login', models.DateTimeField(null=True, verbose_name='last login', blank=True)),
580580
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
581-
('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, max_length=30, validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.', 'invalid')], help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', unique=True, verbose_name='username')),
581+
('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, max_length=30, validators=[django.core.validators.RegexValidator(r'^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.', 'invalid')], help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', unique=True, verbose_name='username')),
582582
('first_name', models.CharField(max_length=30, verbose_name='first name', blank=True)),
583583
('last_name', models.CharField(max_length=30, verbose_name='last name', blank=True)),
584584
('email', models.EmailField(max_length=254, verbose_name='email address', blank=True)),

0 commit comments

Comments
 (0)