About Populating the DateField Value For Fields with auto_now_add

In order to set a value for a DateField field with auto_now_add attribute, you'll have to update the entry with the QuerySet's update() method after creating it:

for author in Author.objects.all():
    person = Person.objects.create(
        first_name=author.first_name,
        last_name=author.last_name,
    )
    Person.objects.filter(pk=person.pk).update(
        created_at=author.created_at,
    )

Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2

Django/Python Consulting

If you have a specific Django challenge or integration you'd like to solve, I'd be happy to help. Book a free 30-minute call to discuss your project, see if we're a good fit, and explore the best approach for your needs. After the call, you'll receive a tailored cost estimate based on what we discuss.