Skip to content

Commit 18244a7

Browse files
committed
revert commit
1 parent fbcf27f commit 18244a7

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

config/settings/common.py

-1
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,6 @@ def _add_hawk_credentials(id_env_name, key_env_name, scopes):
752752

753753
S3_LOCAL_ENDPOINT_URL = env("S3_LOCAL_ENDPOINT_URL", default='')
754754
ENABLE_CONTACT_CONSENT_INGEST = env("ENABLE_CONTACT_CONSENT_INGEST", default=False)
755-
CONSENT_DATA_MANAGEMENT_URL = env("CONSENT_DATA_MANAGEMENT_URL", default='')
756755

757756
# Initially set to 1 hour, to increase once confirmed it's successful.
758757
SECURE_HSTS_SECONDS = 3600

datahub/company/serializers.py

-6
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@ class ContactSerializer(PermittedFieldsModelSerializer):
173173
primary = serializers.BooleanField()
174174
valid_email = serializers.BooleanField(required=False, allow_null=True)
175175
consent_data = serializers.JSONField(required=False, allow_null=True)
176-
consent_data_management_url = serializers.SerializerMethodField()
177-
178-
def get_consent_data_management_url(self, obj):
179-
return f'{settings.CONSENT_DATA_MANAGEMENT_URL}{obj.email}'
180176

181177
def validate_email(self, value):
182178
"""
@@ -233,12 +229,10 @@ class Meta:
233229
'modified_on',
234230
'address_area',
235231
'consent_data',
236-
'consent_data_management_url',
237232
)
238233
read_only_fields = (
239234
'archived_documents_url_path',
240235
'consent_data',
241-
'consent_data_management_url',
242236
)
243237
validators = [
244238
NotArchivedValidator(),

sample.env

-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,3 @@ INTERACTION_NOTIFICATION_API_KEY=
8585
EXPORT_WIN_NOTIFICATION_API_KEY=
8686

8787
S3_LOCAL_ENDPOINT_URL=http://localstack:4566
88-
CONSENT_DATA_MANAGEMENT_URL=http://hostedform.dbtdomain.com?email=

0 commit comments

Comments
 (0)