Remove "string based" RunPython operations.
|Reported by:||loic84||Owned by:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Example of "string based" RunPython operation:
# Create the operation operation = migrations.RunPython( """ Pony = models.get_model("test_runpython", "Pony") Pony.objects.create(pink=2, weight=4.55) Pony.objects.create(weight=1) """, )
This removal was discussed on IRC with Andrew, the rationale being that most Python tooling wouldn't be able to inspect this code and that it doesn't provide an obvious gain compared to callables.
Marking it as release blocker, since we should remove this feature before people start using it.