Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- current_time = datetime.now()
- user1 = User.objects.create_user(username="user_1", password="1234")
- user2 = User.objects.create_user(username="user_2", password="1234")
- m1 = Murr.objects.create(title="hello1", description="no description", author=user1,
- timestamp=current_time - timedelta(minutes=5 * 3))
- m2 = Murr.objects.create(title="hello2", description="no description", author=user1,
- timestamp=current_time - timedelta(minutes=5 * 2))
- m3 = Murr.objects.create(title="hello3", description="no description", author=user1,
- timestamp=current_time - timedelta(minutes=5 * 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement