Changes between Initial Version and Version 1 of Ticket #31922
- Timestamp:
- Aug 20, 2020, 3:30:49 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31922 – Description
initial v1 20 20 We will add some data: 21 21 22 23 {{{ 22 24 from django.utils import timezone 23 25 from utils.models import * … … 28 30 BookStatus.objects.create(book=b1, status='PUBLISHED', valid_from=timezone.now()) 29 31 BookStatus.objects.create(book=b2, status='DRAFT', valid_from=timezone.now()) 32 }}} 33 30 34 31 35 Now we want to find all books that are in draft but not published.