Skip to content

Commit 6ec6151

Browse files
committed
Incoming On-Going information to be saved via serializer
1 parent d806cfe commit 6ec6151

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,5 @@ Run ` python manage.py update-sovereign-and-disputed new_fields.csv` to update t
225225
## Update Mapbox Tilesets
226226
To update GO countries and districts Mapbox tilesets, run the management command `python manage.py update-mapbox-tilesets`. This will export all country and district geometries to a GeoJSON file, and then upload them to Mapbox. The tilesets will take a while to process. The updated status can be viewed on the Mapbox Studio under tilesets. To run this management command, MAPBOX_ACCESS_TOKEN should be set in the environment.
227227

228-
## Improt GEC codes
228+
## Import GEC codes
229229
To import GEC codes along with country ids, run `python manage.py import-gec-code appeal_ingest_match.csv`. The CSV should have the columns `'GST_code', 'GST_name', 'GO ID', 'ISO'`

deployments/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,9 @@ class Meta:
542542
fields = ('id', 'created_by_details', 'modified_by_details', 'reporting_ns_details',
543543
'deployed_eru_details', 'districts_details', 'activities', 'event_details',
544544
'activity_lead_display', 'status_display', 'country_details', 'visibility_display',
545-
'title', 'activity_lead', 'reporting_ns', 'event', 'country', 'districts',
545+
'title', 'activity_lead', 'reporting_ns', 'event', 'country', 'districts', 'status',
546546
'created_at', 'modified_at', 'start_date', 'end_date',
547-
) # '__all__'
547+
) # '__all__' | Both X_details + X fields are needed: outgoing + incoming data.
548548
read_only_fields = (
549549
'created_by',
550550
'created_at',

0 commit comments

Comments
 (0)