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
2c271ac7
Commit
2c271ac7
authored
3 years ago
by
Tore.Brede
Browse files
Options
Downloads
Patches
Plain Diff
GREG-21: Allow start date for roles to be null
parent
11871d53
No related branches found
No related tags found
1 merge request
!24
GREG-21: Various model updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
greg/models.py
+3
-1
3 additions, 1 deletion
greg/models.py
with
3 additions
and
1 deletion
greg/models.py
+
3
−
1
View file @
2c271ac7
...
...
@@ -93,7 +93,9 @@ class PersonRole(BaseModel):
unit
=
models
.
ForeignKey
(
"
OrganizationalUnit
"
,
on_delete
=
models
.
PROTECT
,
related_name
=
"
unit_person_role
"
)
start_date
=
models
.
DateField
()
# The start date can be null for people that are already
# attached to the institution but does not have a guest account
start_date
=
models
.
DateField
(
null
=
True
)
end_date
=
models
.
DateField
()
# TODO Is this field needed?
contact_person_unit
=
models
.
TextField
()
...
...
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