By the way, the django-developers mailing list is about the development of
Django itself. Please keep usage questions limited to django-users. Thanks!
On Friday, February 5, 2016 at 6:10:04 PM UTC-5, Dheerendra Rathor wrote:
>
> Yes you can keep custom primary key. Pass `primary_key=True` in your
Yes you can keep custom primary key. Pass `primary_key=True` in your model
and Django won't create a primary key for that model.
Here are relevant docs:
https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.Field.primary_key
On Fri, 5 Feb 2016 at 20:52 Uri Even-Chen wrote:
>
To django-developers@googlegroups.com,
I'm a Django user and I'm working on converting Speedy Net from PHP to
Django. I would like to know if it's possible in Django to change the
primary key of Django models, such as User? I don't like the auto-increment
default primary key, it doesn't make sense