6th November 2023
Hello Coders! As announced on the official Django site, the Django 5.0 Version is out. The changes provided in this version are listed below. Curious minds and cutting-edge developers can test the new features by using the latest Django 5.x release: ✅ Options for declaring field choices in Django Field.choices(for model fields) and ChoiceField.choices(for form fields) allow for more flexibility when declaring their values. In previous versions of Django, choices should either be a list of 2-tuples, or an Enumeration types subclass, but the latter required accessing the .choices attribute to provide the values in the expected form Django 5.0 adds support for accepting a mapping or a callable instead of an iterable, and also no longer […]