Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

migrations.rename_field django

class Migration(migrations.Migration):
    ...
  
    operations = [
        migrations.RenameField(
            model_name=...
            old_name=...
            new_name=...
        ),
    ]
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django
ADD COMMENT
Topic
Name
2+9 =