On 18/05/2021 3:18 pm, Mike Dewhirst wrote:
On 18/05/2021 3:14 pm, Pankaj Jangid wrote:
I have an application from 3.1.x and in 3.2 we have to explicitly state
this to make it compatible i.e. without any warning:

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

Now suppose I want to change this to BigAutoField. What all changes I’ll
have to make in the application. Or do I just need to run migration?


Should have said make the change in settings first ...

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Just makemigrations and migrate.

M




--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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/547d153a-8827-1ca9-89ca-d792046423d6%40dewhirst.com.au.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to