Commit b0daf5a0 authored by Calum Mackervoy's avatar Calum Mackervoy

customer first_name and email required

parent 1a18bab0
Pipeline #6935 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-12-20 19:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_project', '0005_auto_20191217_1301'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='email',
field=models.EmailField(default='customer@customer.com', max_length=254),
preserve_default=False,
),
migrations.AlterField(
model_name='customer',
name='first_name',
field=models.CharField(default='Customer', max_length=255),
preserve_default=False,
),
]
......@@ -14,10 +14,10 @@ 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)
first_name = models.CharField(max_length=255, null=True, blank=True)
first_name = models.CharField(max_length=255, null=False, blank=False)
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)
email = models.EmailField(null=False, blank=False)
phone = models.CharField(max_length=255, null=True, blank=True)
def __str__(self):
......
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