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
aebf03d9
Commit
aebf03d9
authored
3 years ago
by
Jonas Braathen
Browse files
Options
Downloads
Patches
Plain Diff
Fix bad merge and failing test
parent
2ee11772
No related branches found
No related tags found
1 merge request
!299
Show invitation status
Pipeline
#120563
passed
3 years ago
Stage: venv update
Stage: tests and linting
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gregui/api/serializers/guest.py
+2
-6
2 additions, 6 deletions
gregui/api/serializers/guest.py
gregui/tests/api/serializers/test_guest.py
+1
-1
1 addition, 1 deletion
gregui/tests/api/serializers/test_guest.py
with
3 additions
and
7 deletions
gregui/api/serializers/guest.py
+
2
−
6
View file @
aebf03d9
...
...
@@ -6,11 +6,6 @@ from rest_framework import serializers
from
rest_framework.exceptions
import
ValidationError
from
rest_framework.fields
import
BooleanField
,
CharField
,
SerializerMethodField
<<<<<<<
HEAD
from
greg.models
import
Consent
,
ConsentChoice
,
ConsentType
,
Identity
,
Person
from
greg.utils
import
is_identity_duplicate
from
gregui.api.serializers.IdentityDuplicateError
import
IdentityDuplicateError
=======
from
greg.models
import
(
Consent
,
...
...
@@ -20,9 +15,10 @@ from greg.models import (
Person
,
InvitationLink
,
)
from
greg.utils
import
is_identity_duplicate
from
gregui.api.serializers.IdentityDuplicateError
import
IdentityDuplicateError
from
gregui.api.serializers.identity
import
PartialIdentitySerializer
from
gregui.api.serializers.role
import
ExtendedRoleSerializer
>>>>>>>
5
be5116
(
Add
an
invitation
status
field
to
the
guest
serializer
for
use
in
the
UI
.)
from
gregui.validation
import
(
validate_phone_number
,
validate_norwegian_national_id_number
,
...
...
This diff is collapsed.
Click to expand it.
gregui/tests/api/serializers/test_guest.py
+
1
−
1
View file @
aebf03d9
...
...
@@ -17,7 +17,7 @@ def test_serialize_guest(invited_person):
"
first
"
:
"
Foo
"
,
"
fnr
"
:
None
,
"
invitation_status
"
:
"
active
"
,
"
last
"
:
"
Bar
"
,
"
last
"
:
"
Ba
م
r
"
,
"
mobile
"
:
None
,
"
passport
"
:
None
,
"
pid
"
:
"
1
"
,
...
...
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