Commit f402fe3d authored by Raphaël Hertzog's avatar Raphaël Hertzog

Modify the initial migration to ensure the help text and verbose name match

Changing the help_text and verbose_name has no impact on the database and thus doesn't strictly require a migration. This is a small hack to avoid a warning requiring us to create a migration.
parent 268dbefa
Pipeline #12647 passed with stage
in 86 minutes 16 seconds
......@@ -339,7 +339,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(unique=True, max_length=100)),
('slug', models.SlugField(help_text="A team's slug determines its URL", unique=True)),
('slug', models.SlugField(help_text='Used in the URL (/teams/<em>identifier</em>/) and in the associated email address team+<em>identifier</em>@<em>domain</em>.', unique=True, verbose_name='Identifier')),
('description', models.TextField(null=True, blank=True)),
('url', models.URLField(max_length=255, null=True, blank=True)),
('public', models.BooleanField(default=True)),
......
......@@ -2190,8 +2190,7 @@ class Team(models.Model):
verbose_name='Identifier',
help_text='Used in the URL (/teams/<em>identifier</em>/) and in the '
'associated email address '
'team+<em>identifier</em>@{}.'.format(
settings.DISTRO_TRACKER_FQDN),
'team+<em>identifier</em>@<em>domain</em>.',
)
maintainer_email = models.ForeignKey(
UserEmail,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment