Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove debug prints

  • Loading branch information...
commit 7609e0b42e0014a6ad0adf9dafc7018cb268070e 1 parent 8d81c6b
@andrewgodwin andrewgodwin authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 django/db/migrations/executor.py
View
4 django/db/migrations/executor.py
@@ -49,20 +49,16 @@ def apply_migration(self, migration):
"""
Runs a migration forwards.
"""
- print "Applying %s" % migration
with self.connection.schema_editor() as schema_editor:
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
migration.apply(project_state, schema_editor)
self.recorder.record_applied(migration.app_label, migration.name)
- print "Finished %s" % migration
def unapply_migration(self, migration):
"""
Runs a migration backwards.
"""
- print "Unapplying %s" % migration
with self.connection.schema_editor() as schema_editor:
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
migration.unapply(project_state, schema_editor)
self.recorder.record_unapplied(migration.app_label, migration.name)
- print "Finished %s" % migration
Please sign in to comment.
Something went wrong with that request. Please try again.