Mike Dewhirst <
mi...@dewhirst.com.au> writes:
> 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.