diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-02-28 09:22:15 -0800 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-02-28 09:22:48 -0800 |
| commit | cbd04c7c498689382ce56a7b7b31eca5ba98b590 (patch) | |
| tree | e10817aa1597542ecba6b8021028ee78fa9b3728 | |
| parent | 7f2505ad9e27962ecbd61d2ce26ad691727404a4 (diff) | |
Fix keyword agument names in RunPython to be positional
| -rw-r--r-- | django/db/migrations/operations/special.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/migrations/operations/special.py b/django/db/migrations/operations/special.py index 40ae1f85b7..4f0c494f33 100644 --- a/django/db/migrations/operations/special.py +++ b/django/db/migrations/operations/special.py @@ -131,12 +131,12 @@ class RunPython(Operation): # object, representing the versioned models as an app registry. # We could try to override the global cache, but then people will still # use direct imports, so we go with a documentation approach instead. - self.code(models=from_state.render(), schema_editor=schema_editor) + self.code(from_state.render(), schema_editor) def database_backwards(self, app_label, schema_editor, from_state, to_state): if self.reverse_code is None: raise NotImplementedError("You cannot reverse this operation") - self.reverse_code(models=from_state.render(), schema_editor=schema_editor) + self.reverse_code(from_state.render(), schema_editor) def describe(self): return "Raw Python operation" |
