Fix tests and git migration gathering

This commit is contained in:
David-Wobrock committed 2019-01-05 17:39:09 +01:00
1 parent c6df7e53a0
commit 7a34ac9010
5 files changed
+36 -19

No files matched your search

+5
View File
@@ -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