F function?

19 views
Skip to first unread message

Chad Vernon

unread,
Feb 1, 2013, 12:10:39 AM2/1/13
to django...@googlegroups.com
I was looking at this snippet:

http://djangosnippets.org/snippets/1560/#comments

And on this line:
ReportField.objects.filter(order__range=range).update(order=F('order')+shift)

What is the F in F('order')?

Thanks!
Chad

Chad Vernon

unread,
Feb 1, 2013, 12:14:56 AM2/1/13
to django...@googlegroups.com
Nevermind, found it!  Was having a hard time searching for "F" :)

Jirka Vejrazka

unread,
Feb 1, 2013, 2:38:11 AM2/1/13
to Django users
Pro tip:  if you find yourself in a similar situation again, try searching Django code for "def F(" and "class F(" - that should narrow your search a bit :)

  Cheers

    Jirka


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages