Skip to content

Commit

Permalink
Add type to appropriate Dossiers
Browse files Browse the repository at this point in the history
  • Loading branch information
bartek committed Sep 16, 2016
1 parent 99f8c77 commit c65b31e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions gapipy/resources/dossier/accommodation_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class AccommodationDossier(Resource, DossierDetailsMixin):

_as_is_fields = [
'id', 'href', 'name',
'type',
'website',
'property_type',
'address',
Expand Down
4 changes: 3 additions & 1 deletion gapipy/resources/dossier/activity_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class ActivityDossier(Resource, DossierDetailsMixin, DurationLabelMixin, Locatio
_resource_name = 'activity_dossiers'

_as_is_fields = [
'id', 'href',
'id',
'href',
'type',
'name',
'duration_min', 'duration_max',
'price_per_person_min', 'price_per_person_max',
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'
'id', 'href', 'name', 'type',
]

_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 @@ -13,7 +13,7 @@ class PlaceDossier(Resource):
_resource_name = 'place_dossiers'

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

_date_time_fields_local = ['date_created', 'date_last_modified']
Expand Down
7 changes: 6 additions & 1 deletion gapipy/resources/dossier/transport_dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ class TransportDossier(Resource, DossierDetailsMixin):
_resource_name = 'transport_dossiers'

_as_is_fields = [
'id', 'href', 'capacity', 'private', 'name',
'id',
'href',
'capacity',
'private',
'name',
'dossier_segment',
'type',
]

_model_collection_fields = [
Expand Down

0 comments on commit c65b31e

Please sign in to comment.