[Django]-How to rename a function in Django model without causing AttributeError during migration

3👍

Open the migration file that has the import to the old function
and adjust the reference.

from cool_function() to even_cooler_function() in your relevant migration file.

👤JGCW

Leave a comment