Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Correct behavior of _get_current_migration_number #40

Merged
merged 1 commit into from

2 participants

@dcramer

No description provided.

@paltman paltman merged commit 3ec8845 into paltman:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 13, 2012
  1. @dcramer
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  nashvegas/management/commands/upgradedb.py
View
2  nashvegas/management/commands/upgradedb.py
@@ -167,7 +167,7 @@ def _get_current_migration_number(self, database):
result = Migration.objects.using(database).order_by('-migration_label')[0]
except IndexError:
return 0
- match = MIGRATION_NAME_RE.match(result.migration_level)
+ match = MIGRATION_NAME_RE.match(result.migration_label)
return int(match.group(1))
def _execute_migration(self, database, migration, show_traceback=True):
Something went wrong with that request. Please try again.