Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
b349e510
Verified
Commit
b349e510
authored
3 years ago
by
Andreas Ellewsen
Browse files
Options
Downloads
Patches
Plain Diff
Allow blank verification fields on Identity
parent
a3a7410d
No related branches found
No related tags found
1 merge request
!170
Greg 101 verify identity
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
greg/migrations/0016_identity_allow_blank.py
+30
-0
30 additions, 0 deletions
greg/migrations/0016_identity_allow_blank.py
greg/models.py
+6
-2
6 additions, 2 deletions
greg/models.py
with
36 additions
and
2 deletions
greg/migrations/0016_identity_allow_blank.py
0 → 100644
+
30
−
0
View file @
b349e510
# Generated by Django 3.2.9 on 2021-11-23 12:09
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"
greg
"
,
"
0015_add_feide_email
"
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
"
identity
"
,
name
=
"
verified_at
"
,
field
=
models
.
DateTimeField
(
blank
=
True
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
"
identity
"
,
name
=
"
verified_by
"
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
PROTECT
,
related_name
=
"
sponsor
"
,
to
=
"
greg.sponsor
"
,
),
),
]
This diff is collapsed.
Click to expand it.
greg/models.py
+
6
−
2
View file @
b349e510
...
...
@@ -289,9 +289,13 @@ class Identity(BaseModel):
value
=
models
.
CharField
(
max_length
=
256
)
verified
=
models
.
CharField
(
max_length
=
9
,
choices
=
Verified
.
choices
,
blank
=
True
)
verified_by
=
models
.
ForeignKey
(
"
Sponsor
"
,
on_delete
=
models
.
PROTECT
,
related_name
=
"
sponsor
"
,
null
=
True
"
Sponsor
"
,
on_delete
=
models
.
PROTECT
,
related_name
=
"
sponsor
"
,
null
=
True
,
blank
=
True
,
)
verified_at
=
models
.
DateTimeField
(
null
=
True
)
verified_at
=
models
.
DateTimeField
(
null
=
True
,
blank
=
True
)
def
__str__
(
self
):
return
"
{}(id={!r}, type={!r}, value={!r})
"
.
format
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment