Using Django's GeneratedField
Django (the python web framework) version 5.0, released in December 2023, introduced a new field type for models - the GeneratedField. This is potentially a very handy tool - it allows you to define fields that are based on other fields, but gives you the flexibility and speed that comes with …