Style: Prepend "operation_" to data migrations

Prepend "operation_" to the data migration functions
for clear purpose. Add keyword arguments to the RunPython
migration opration.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-07 17:28:22 -04:00
parent ab1482152e
commit 255b1c75ea
11 changed files with 29 additions and 29 deletions
@@ -4,7 +4,7 @@ from __future__ import unicode_literals
from django.db import migrations
def move_from_content_type_user_to_foreign_key_field_user(apps, schema_editor):
def operation_move_from_content_type_user_to_foreign_key_field_user(apps, schema_editor):
# The model references the use who checked out the document using a
# generic.GenericForeignKey. This migrations changes that to a simpler
# ForeignKey to the User model
@@ -24,6 +24,6 @@ class Migration(migrations.Migration):
operations = [
migrations.RunPython(
move_from_content_type_user_to_foreign_key_field_user
code=operation_move_from_content_type_user_to_foreign_key_field_user
),
]