Skip to content
Snippets Groups Projects
Verified Commit 9bc5f84a authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Use default source for manual identities

This ensures that identity values created from values written in the
frontend by guests are given a source value signifying so.

Resolves: GREG-186
parent 5d95c492
No related branches found
No related tags found
1 merge request!261Use default source for manual identities
Pipeline #112330 passed
import datetime
from django.conf import settings
from django.utils.timezone import now
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
......@@ -156,6 +157,7 @@ def create_identity_or_update(
Identity.objects.create(
person=person,
type=identity_type,
source=settings.DEFAULT_IDENTITY_SOURCE,
value=value,
)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment