Hi Ramesh — are you trying to add a new field with auto_now to an existing table with rows already in the database? If so, you won’t be able to add it with blank=False or null=False because it won’t know what value to add to existing rows. You’ll need to add it with nullability, backfill existing rows, and then go back and set null=False after.

Senior Software Engineer | www.adriennedomingus.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store