#21892: Remove "string based" RunPython operations.
--------------------------------------+-------------------------
     Reporter:  loic84                |      Owner:
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Migrations            |    Version:  1.7-alpha-1
     Severity:  Release blocker       |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+-------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21892>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.7908d1cc5b0e270cd945fc60fdc246fa%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to