Skip to content

v3.16.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 17:19
4b7ef5e

This release adds Persian with the Jalali calendar, right-to-left pages and emails, several working hours on the same day, the client's own time on the booking page, and a way to keep values from the moment a client books. It also fixes the booking calendar graying out the wrong days in browsers west of UTC. It changes the database and some templates, so please read the migration guide before upgrading.

⬆️ Upgrading

pip install django-appointment==3.16.0
python manage.py makemigrations appointment
python manage.py migrate
python manage.py collectstatic

New setting, optional: APPOINTMENT_BOOKING_CONTEXT_KEYS. See Keeping booking context.

If you override appointment/appointments.html or administration/staff_index.html, load the new js/local_calendar.js before the calendar script, or the calendar won't load.

✨ New Features

  • Staff can set several working hours on the same day, for example 9:00 to 12:00 and 14:00 to 17:00 (#593)
  • The booking page, thank-you page and client emails show the client's own time when it differs from the site's (#594)
  • A new appointment_request_created signal and booking_context field keep values such as the campaign (#596)
  • Persian (fa) translation, made with the help of AI; a review by a Farsi speaker is welcome (#603)
  • In Persian, dates use the Jalali calendar and Persian digits in pages, emails and calendars (#601, #602)
  • Pages and emails are written right to left in Arabic, Hebrew and Persian (#600)
  • Prices, down payments and amounts to pay go up to 9,999,999,999.99 (#598)

⚙️ Changes

Dates and languages (#599)

  • Emails, the thank-you details and the reschedule page write dates with the language's format
  • The staff calendar starts the week on the language's first day and shades the region's weekend
  • The base page's lang follows the current language instead of always en

Other

  • django-phonenumber-field 9.x is allowed (it needs Django 5.2 or later; 8.x still works on Django 4.2)
  • Brazilian Portuguese is now listed in the README and the internationalization guide

🐛 Bug Fixes

  • In browsers west of UTC, the booking calendar no longer grays out the wrong days (#594, fixes #352 and #305)

📦 Dependencies

  • Bump babel from 2.18.0 to 2.19.0 (#606)
  • Bump django-recurrence from 1.14 to 1.15.1 (#597, #605)
  • Bump phonenumbers and pymdown-extensions (#595)

Full release notes: https://django-appt-doc.adamspierredavid.com/release_notes/latest/
Full changelog: v3.15.0...v3.16.0