Fix tests and git migration gathering
This commit is contained in:
1 parent
c6df7e53a0
commit
7a34ac9010
5 files changed
+36
-19
No files matched your search
@@ -5,3 +5,8 @@ class Migration(object):
|
||||
def __init__(self, abs_path):
|
||||
self.abs_path = abs_path
|
||||
self.app_name, self.name = split_migration_path(self.abs_path)
|
||||
|
||||
def __lt__(self, other):
|
||||
if not isinstance(other, Migration):
|
||||
return NotImplemented
|
||||
return self.abs_path < other.abs_path
|
||||
Reference in new issue
Block a user