Django 2.2 postgres
I added uuid to my existing django model , generated and applied a migration for the table that already had records in it:
migrations.AddField(
model_name='<mymodel>',
name='uuid',
field=models.UUIDField(default=uuid.uuid4, editable=False),
),
The field got added fine, however all the existing records got the same value inserted in the uuid field. How do I make default=uuid.uuid4 to generate a new uuid value for each existing records?
Thanks