Hi Soumen,

Are you looking for this?
https://docs.djangoproject.com/en/3.0/ref/models/fields/#primary-key

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 <soumenkhatua...@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 advance
>
> Regards,
> 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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/CAPUw6WbZ_nrXgk%3DufWfq39%2BZJmN-nmF0DzeuFK9tqgFW-Os3vQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@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.

Reply via email to