Add event meta-data

This commit is contained in:
Raphael Michel
2017-08-28 11:46:35 +02:00
parent 454ca27c54
commit 88f5af3e77
23 changed files with 470 additions and 27 deletions

View File

@@ -26,8 +26,12 @@ presale_end datetime The date at whi
location multi-lingual string The event location (or ``null``)
has_subevents boolean ``True`` if the event series feature is active for this
event
meta_data dict Values set for organizer-specific meta data parameters.
===================================== ========================== =======================================================
.. versionchanged:: 1.7
The ``meta_data`` field has been added.
Endpoints
---------
@@ -69,7 +73,8 @@ Endpoints
"presale_start": null,
"presale_end": null,
"location": null,
"has_subevents": false
"has_subevents": false,
"meta_data": {}
}
]
}
@@ -112,7 +117,8 @@ Endpoints
"presale_start": null,
"presale_end": null,
"location": null,
"has_subevents": false
"has_subevents": false,
"meta_data": {}
}
:param organizer: The ``slug`` field of the organizer to fetch

View File

@@ -31,8 +31,13 @@ variation_price_overrides list of objects List of variati
the default price
├ variation integer The internal variation ID
└ price money (string) The price or ``null`` for the default price
meta_data dict Values set for organizer-specific meta data parameters.
===================================== ========================== =======================================================
.. versionchanged:: 1.7
The ``meta_data`` field has been added.
Endpoints
---------
@@ -78,7 +83,8 @@ Endpoints
"price": "12.00"
}
],
"variation_price_overrides": []
"variation_price_overrides": [],
"meta_data": {}
}
]
}
@@ -126,7 +132,8 @@ Endpoints
"price": "12.00"
}
],
"variation_price_overrides": []
"variation_price_overrides": [],
"meta_data": {}
}
:param organizer: The ``slug`` field of the organizer to fetch

View File

@@ -32,6 +32,15 @@ Organizers and events
.. autoclass:: pretix.base.models.RequiredAction
:members:
.. autoclass:: pretix.base.models.EventMetaProperty
:members:
.. autoclass:: pretix.base.models.EventMetaValue
:members:
.. autoclass:: pretix.base.models.SubEventMetaValue
:members:
Items
-----