Skip to content

Commit e4c0a8b

Browse files
Merge pull request #1421 from IFRCGo/feature/visibility-of-events
Return also visibility to event properties
2 parents c9771ca + 160222a commit e4c0a8b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

api/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ class Meta:
666666
'is_featured_region', 'field_reports', 'hide_attached_field_reports', 'hide_field_report_map', 'updated_at',
667667
'id', 'slug', 'tab_one_title', 'ifrc_severity_level', 'ifrc_severity_level_display', 'parent_event', 'glide',
668668
'featured_documents', 'links', 'emergency_response_contact_email', 'countries_for_preview',
669-
'response_activity_count'
669+
'response_activity_count', 'visibility'
670670
)
671671
lookup_field = 'slug'
672672

api/snapshots/snap_test_views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
'tab_one_title': 'XKANObFOIsPtEpZZRztDeSdkCAEDnvMjuTuUwziWxGJgupDhrC',
8484
'tab_three_title': 'zxczdKJmxJseyGCWJrNRNhigzxYvJxWjmMGzGccciTvZEHDjMG',
8585
'tab_two_title': 'pjgdsyNApkuKUumWkFGDFtFbfzGDpnLwddsFMPREsIagBiqUxW',
86-
'updated_at': '2008-01-01T00:00:00.123456Z'
86+
'updated_at': '2008-01-01T00:00:00.123456Z',
87+
'visibility': 3
8788
}
8889

8990
snapshots['EventSnaphostTest::test_event_link_api 1'] = {
@@ -157,5 +158,6 @@
157158
'tab_one_title': 'XKANObFOIsPtEpZZRztDeSdkCAEDnvMjuTuUwziWxGJgupDhrC',
158159
'tab_three_title': 'zxczdKJmxJseyGCWJrNRNhigzxYvJxWjmMGzGccciTvZEHDjMG',
159160
'tab_two_title': 'pjgdsyNApkuKUumWkFGDFtFbfzGDpnLwddsFMPREsIagBiqUxW',
160-
'updated_at': '2008-01-01T00:00:00.123456Z'
161+
'updated_at': '2008-01-01T00:00:00.123456Z',
162+
'visibility': 3
161163
}

0 commit comments

Comments
 (0)