Skip to content

Commit

Permalink
refresh_from_db is 1.8 only
Browse files Browse the repository at this point in the history
  • Loading branch information
Koed00 committed Jul 8, 2015
1 parent 0a81968 commit 0413a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_q/tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_scheduler(r):
# store the results
monitor(result_queue)
assert result_queue.qsize() == 0
schedule.refresh_from_db()
schedule = Schedule.objects.get(pk=schedule.pk)
assert schedule.repeats == 0
assert schedule.last_run() is not None
assert schedule.success() is True
Expand Down

0 comments on commit 0413a2e

Please sign in to comment.