Hi Soumen,
Are you looking for this?
You should be able to create a field in your model and set the primary_key to True
On Tue, Jun 23, 2020 at 1:18 PM Soumen Khatua <soumenkhatua258@gmail.com> wrote:
Hi Folks,--In Django is there any way to create custom Primark Key like: M01234GH, M056YUOIP, etc.Please help me guys.Thank you in advanceRegards,Soumen Khatua
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6WbZ_nrXgk%3DufWfq39%2BZJmN-nmF0DzeuFK9tqgFW-Os3vQ%40mail.gmail.com.
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAL_O_N%2Bg167k9EsJ0z5Gc_EYfWJSWrJrdECY5zwfAfc1Rn_M1g%40mail.gmail.com.
No comments:
Post a Comment