Version 3.15.0
Migration Guide for Version 3.15.0 🚀¶
Version 3.15.0 changes the database (email verification codes), adds three settings and changes how rescheduling and email codes behave. The supported Python and Django versions are the same.
Coming from 3.14.x¶
-
Upgrade the package:
-
Create and run the migration.
EmailVerificationCodehas newattemptsandemailfields, and itsusercan now be empty (a new client's account is only created once they enter the code): -
Collect the static files, since the booking and calendar scripts changed:
-
Check your site address (optional). Links in emails use, in order,
APPOINTMENT_SITE_URL, the currentSiteofdjango.contrib.siteswhen that app is installed, or the request's address:
If you use django.contrib.sites, make sure your Site's domain is not still example.com. Also make sure
ALLOWED_HOSTS lists your real domain names, not ["*"].
-
Optional: change how long email codes stay valid (10 minutes by default):
And limit the codes asked for from one IP address in an hour (off by default; read the configuration page first if your site is behind a proxy):
```python
APPOINTMENT_VERIFICATION_EMAILS_PER_IP = 10
```
- Check what changed in behaviour:
- Confirming a reschedule now takes a click on a Confirm button. The link opens the new
appointment/confirm_reschedule.htmlpage, which you can override like the other templates. Only a POST to that page confirms. - The reschedule limit now counts confirmed reschedules for each appointment request.
- Staff and superuser accounts are no longer logged in by a booking code.
- Bookings outside the staff member's free slots are refused, and the end time follows the service's duration.
- If you override
manage_working_hours.html, it keeps working with one day. To let staff pick several days, use checkboxes whenmultiple_daysis set, as the package template does. - The calendar delete endpoint (
delete_appointment_ajax) only accepts AJAX POST requests. - Only 3 codes are sent to the same address in an hour. The count uses Django's cache, so with several worker processes use a shared cache (Redis, Memcached or the database) for an exact count.
- Confirming a reschedule now takes a click on a Confirm button. The link opens the new
Coming from 3.13.x or older¶
Follow the 3.14.0 migration guide first, then the steps above.
Important Notes 📝:¶
- See the release notes for what is new.
- As with any upgrade, testing in a development or staging environment before applying changes to your production environment is highly recommended.