Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Djangoldp Project
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Startin blox
djangoldp-packages
Djangoldp Project
Commits
b0daf5a0
Commit
b0daf5a0
authored
Dec 20, 2019
by
Calum Mackervoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
customer first_name and email required
parent
1a18bab0
Pipeline
#6935
passed with stage
in 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
djangoldp_project/migrations/0006_auto_20191220_1925.py
djangoldp_project/migrations/0006_auto_20191220_1925.py
+27
-0
djangoldp_project/models.py
djangoldp_project/models.py
+2
-2
No files found.
djangoldp_project/migrations/0006_auto_20191220_1925.py
0 → 100644
View file @
b0daf5a0
# -*- 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
,
),
]
djangoldp_project/models.py
View file @
b0daf5a0
...
...
@@ -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
=
Tru
e
)
first_name
=
models
.
CharField
(
max_length
=
255
,
null
=
False
,
blank
=
Fals
e
)
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
=
Tru
e
)
email
=
models
.
EmailField
(
null
=
False
,
blank
=
Fals
e
)
phone
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
)
def
__str__
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment