Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

queryset o que é

>>> Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
<QuerySet [<Post: Post number 2>, <Post: My 3rd post!>, <Post: 4th title of post>, <Post: Sample title>]>
Source by tutorial.djangogirls.org #
 
PREVIOUS NEXT
Tagged: #queryset
ADD COMMENT
Topic
Name
5+3 =