mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Refs #25073 -- Copied recently added verbose_names to migrations.
This commit is contained in:
		| @@ -23,8 +23,8 @@ class Migration(migrations.Migration): | ||||
|                 ('object_repr', models.CharField(max_length=200, verbose_name='object repr')), | ||||
|                 ('action_flag', models.PositiveSmallIntegerField(verbose_name='action flag')), | ||||
|                 ('change_message', models.TextField(verbose_name='change message', blank=True)), | ||||
|                 ('content_type', models.ForeignKey(to_field='id', blank=True, to='contenttypes.ContentType', null=True)), | ||||
|                 ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), | ||||
|                 ('content_type', models.ForeignKey(to_field='id', blank=True, to='contenttypes.ContentType', null=True, verbose_name='content type')), | ||||
|                 ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, verbose_name='user')), | ||||
|             ], | ||||
|             options={ | ||||
|                 'ordering': ('-action_time',), | ||||
|   | ||||
| @@ -19,7 +19,7 @@ class Migration(migrations.Migration): | ||||
|             fields=[ | ||||
|                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||||
|                 ('name', models.CharField(max_length=50, verbose_name='name')), | ||||
|                 ('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id')), | ||||
|                 ('content_type', models.ForeignKey(to='contenttypes.ContentType', to_field='id', verbose_name='content type')), | ||||
|                 ('codename', models.CharField(max_length=100, verbose_name='codename')), | ||||
|             ], | ||||
|             options={ | ||||
|   | ||||
| @@ -21,7 +21,7 @@ class Migration(migrations.Migration): | ||||
|                 ('enable_comments', models.BooleanField(default=False, verbose_name='enable comments')), | ||||
|                 ('template_name', models.CharField(help_text="Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.", max_length=70, verbose_name='template name', blank=True)), | ||||
|                 ('registration_required', models.BooleanField(default=False, help_text='If this is checked, only logged-in users will be able to view the page.', verbose_name='registration required')), | ||||
|                 ('sites', models.ManyToManyField(to='sites.Site')), | ||||
|                 ('sites', models.ManyToManyField(to='sites.Site', verbose_name='sites')), | ||||
|             ], | ||||
|             options={ | ||||
|                 'ordering': ('url',), | ||||
|   | ||||
| @@ -15,7 +15,7 @@ class Migration(migrations.Migration): | ||||
|             name='Redirect', | ||||
|             fields=[ | ||||
|                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||||
|                 ('site', models.ForeignKey(to='sites.Site', to_field='id')), | ||||
|                 ('site', models.ForeignKey(to='sites.Site', to_field='id', verbose_name='site')), | ||||
|                 ('old_path', models.CharField(help_text="This should be an absolute path, excluding the domain name. Example: '/events/search/'.", max_length=200, verbose_name='redirect from', db_index=True)), | ||||
|                 ('new_path', models.CharField(help_text="This can be either an absolute path (as above) or a full URL starting with 'http://'.", max_length=200, verbose_name='redirect to', blank=True)), | ||||
|             ], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user