Update schedule model validation
ricco386 opened this issue · comments
Richard von Kellner commented
When storing schedule model add clean and save methods (see ticket for inspiration), that will do the following validation:
- Only approved talk can be scheduled
- If talk is selected duration is copied from talk
- Event is related to location and location has room, make sure selected room in schedule belongs to Event's location
- Make sure date and time is within the event's range
- Make sure system does not allow store two events at the same time in the same room, eg. schedule datetime + duration in room is unique.
Jubril Issa commented
Hi @ricco386, I would like to try this.
Richard von Kellner commented
Hi @masterp4dev sure go ahead...
Zoltan Onody commented
Hey @masterp4dev how is it going? If you need any advice, feel free to ask.
EmilLuta commented
Hello guys. I'm not sure on how the current progress is going, but I was wondering if I could give it a go. What do you think?
Zoltan Onody commented
@EmilLuta sure :)
EmilLuta commented
@ZoltanOnody Seems like I'll have to drop this one, sadly. Feel free to reassign it to someone else.
Richard von Kellner commented
PR #212
Richard von Kellner commented
we shall leave as it is and focus on #291