Fix Identity field names

This commit is contained in:
Cristi Vîjdea
2018-08-06 16:37:20 +03:00
parent df0f43084f
commit 9eb0db466c
3 changed files with 34 additions and 6 deletions
@@ -0,0 +1,28 @@
# Generated by Django 2.1 on 2018-08-06 13:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='identity',
name='lastName',
field=models.CharField(help_text="<strong>Here's some HTML!</strong>", max_length=30, null=True),
),
migrations.RenameField(
model_name='identity',
old_name='firstName',
new_name='first_name',
),
migrations.RenameField(
model_name='identity',
old_name='lastName',
new_name='last_name',
),
]
+2 -2
View File
@@ -3,8 +3,8 @@ from django.utils.safestring import mark_safe
class Identity(models.Model):
firstName = models.CharField(max_length=30, null=True)
lastName = models.CharField(max_length=30, null=True, help_text=mark_safe("<strong>Here's some HTML!</strong>"))
first_name = models.CharField(max_length=30, null=True)
last_name = models.CharField(max_length=30, null=True, help_text=mark_safe("<strong>Here's some HTML!</strong>"))
class Person(models.Model):