Hi, You can add a validator to your field with a custom alogithm to verify that the format is correct : Validators | Django documentation | Django (djangoproject.com) <https://docs.djangoproject.com/en/4.2/ref/validators/>
Don't hesitate if you need more information Le jeudi 6 avril 2023 à 03:42:30 UTC+2, [email protected] a écrit : > Good day all > > I am new to django and I need assistance where I can make a unique > registration number via model with the following format > > *ch2023ed0213* where > > *'ch'* stands for abbreviated school name, > *'2023'* year of programme, > *'ed'* for department and > *'0213'* student unique number.. > > Urls Link or recorded tutorials are welcome. > > Thank you > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a1c0e181-ca7d-438c-8602-133e0f795837n%40googlegroups.com.

