-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Booking additional fields #216
Conversation
Pull Request Test Coverage Report for Build 11069580854Details
💛 - Coveralls |
README
|
How does the frontend know about the additional fields? By reading the typology object? Alternatively, if you put the additional fields in the schema https://github.com/RedTurtle/redturtle.prenotazioni/blob/main/src/redturtle/prenotazioni/restapi/services/booking_schema/get.py the only change on the frontend would be to call the schema api with the chosen typology. At that point even the writing API would have no changes on the frontend and it would be the backend that would save the additional fields to the correct field. |
src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazione.py
Outdated
Show resolved
Hide resolved
src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazione.py
Outdated
Show resolved
Hide resolved
conformity
Co-authored-by: Andrea Cecchi <[email protected]>
Co-authored-by: Andrea Cecchi <[email protected]>
Co-authored-by: Andrea Cecchi <[email protected]>
Co-authored-by: Andrea Cecchi <[email protected]>
1b43690
to
a89faa0
Compare
You can also create the addtional fields for your booking, you just need to compile
them in your PrenotazioneType.
And they will appear in the ["booking_types"]["booking_additional_fields_schema"]
in your booking schema so u can compile them for your booking in this way: