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.