Skip to content

Commit ef956c1

Browse files
committed
fix lookup
1 parent f441a66 commit ef956c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_rollback/management/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def run_rollback(self, migrations_diff_records, fake=False):
147147

148148
def make_the_last_state_for_commit(self, commit):
149149
apps_state = self.get_apps_state_by_commit(commit)
150-
AppsState.objects.filter(id_gt=apps_state.id).delete()
150+
AppsState.objects.filter(id__gt=apps_state.id).delete()
151151

152152
message = f'state for commit "{commit}" now is the last state in DB'
153153
self.stdout.write(f'>>> {message}')

0 commit comments

Comments
 (0)