1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Fixed #21323 -- Improved readability of serialized Operation.

This commit is contained in:
Loic Bistuer
2013-09-26 14:25:35 +07:00
parent c9de1b4a55
commit 374faa4721
4 changed files with 108 additions and 32 deletions

View File

@@ -21,6 +21,8 @@ class Operation(object):
# Can this migration be represented as SQL? (things like RunPython cannot)
reduces_to_sql = True
serialization_expand_args = []
def __new__(cls, *args, **kwargs):
# We capture the arguments to make returning them trivial
self = object.__new__(cls)