Commit 6b2421d6 authored by Calum Mackervoy's avatar Calum Mackervoy Committed by Jean-Baptiste Pasquier

Renaming Customer name fields

parent 766b1846
......@@ -11,8 +11,8 @@ class CustomerFactory(factory.django.DjangoModelFactory):
address = factory.Faker('address')
logo = factory.Faker('url')
companyRegister = factory.Faker('random_int', min=0)
firstName = factory.Faker('first_name')
lastName = factory.Faker('last_name')
first_name = factory.Faker('first_name')
last_name = factory.Faker('last_name')
role = factory.Faker('job')
email = factory.Faker('email')
phone = factory.Faker('phone_number')
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-12-17 13:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_project', '0004_auto_20191211_1552'),
]
operations = [
migrations.RenameField(
model_name='customer',
old_name='firstName',
new_name='first_name',
),
migrations.RenameField(
model_name='customer',
old_name='lastName',
new_name='last_name',
),
]
......@@ -14,8 +14,8 @@ class Customer(Model):
address = models.CharField(max_length=255, null=True, blank=True)
logo = models.URLField(blank=True, null=True)
companyRegister = models.CharField(max_length=255, null=True, blank=True)
firstName = models.CharField(max_length=255, null=True, blank=True)
lastName = models.CharField(max_length=255, null=True, blank=True)
first_name = models.CharField(max_length=255, null=True, blank=True)
last_name = models.CharField(max_length=255, null=True, blank=True)
role = models.CharField(max_length=255, null=True, blank=True)
email = models.EmailField(null=True, blank=True)
phone = models.CharField(max_length=255, null=True, blank=True)
......
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