slashmili / django-jalali

Jalali DateField support for Django model
http://pypi.python.org/pypi/django_jalali
BSD 3-Clause "New" or "Revised" License
258 stars 52 forks source link

How to lower the minimum year limit #254

Open hamidrabedi opened 4 months ago

hamidrabedi commented 4 months ago

Sometimes, when entering birth dates, users need to click repeatedly to select a year like 1350. Is there a way to set the year dropdown to display a range of 100 years by default?

image

mobinghoveoud commented 1 month ago

@hamidrabedi

You can use the combination of these settings to change the date range of the calendar:

slashmili commented 1 month ago

While that's a valid point, have you consider giving input text for user to enter their age? that's a best practice for dates like date of birth. source: https://design-system.service.gov.uk/components/date-input/