Skip to content

Commit

Permalink
Merge pull request #53 from gadventures/expose-publish-state
Browse files Browse the repository at this point in the history
Add Dossier `publish_state`
  • Loading branch information
bartek committed Oct 14, 2016
2 parents 749e1a7 + 20b7668 commit 982081e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ docs/gapipy.*rst
gapipy.egg-info/*

*.pyc
.idea/
1 change: 1 addition & 0 deletions gapipy/resources/dossier/accommodation_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class AccommodationDossier(Resource, DossierDetailsMixin):
'emails',
'phone_numbers',
'rooms',
'publish_state',
]

_date_time_fields_local = ['date_created', 'date_last_modified']
Expand Down
1 change: 1 addition & 0 deletions gapipy/resources/dossier/activity_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ActivityDossier(Resource, DossierDetailsMixin, DurationLabelMixin, Locatio
'currency',
'dossier_segment',
'distance_min', 'distance_max',
'publish_state',
]

_date_time_fields_local = ['date_created', 'date_last_modified']
Expand Down
2 changes: 1 addition & 1 deletion gapipy/resources/dossier/country_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CountryDossier(Resource):
_resource_name = 'country_dossiers'

_as_is_fields = [
'id', 'href', 'name', 'type',
'id', 'href', 'name', 'type', 'publish_state',
]

_date_time_fields_local = ['date_created', 'date_last_modified']
Expand Down
2 changes: 1 addition & 1 deletion gapipy/resources/dossier/place_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PlaceDossier(Resource):
_resource_name = 'place_dossiers'

_as_is_fields = [
'id', 'href', 'name', 'type',
'id', 'href', 'name', 'type', 'publish_state',
]

_date_time_fields_local = ['date_created', 'date_last_modified']
Expand Down
1 change: 1 addition & 0 deletions gapipy/resources/dossier/transport_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class TransportDossier(Resource, DossierDetailsMixin):
'name',
'dossier_segment',
'type',
'publish_state',
]

_model_collection_fields = [
Expand Down

0 comments on commit 982081e

Please sign in to comment.