"depth" keyword argument has been deprecated. Use related field names instead.

49 views
Skip to first unread message

Timothy W. Cook

unread,
Mar 12, 2014, 7:13:57 AM3/12/14
to django...@googlegroups.com
I am using django-forms-builder and I am updating it to work with later versions of Django.
I get the above deprecation warning.  This is the code:


forms.py line 367:
# Get the field entries for the given form and filter by entry_time
        # if specified.
        model = self.fieldentry_model
        field_entries = model.objects.filter(entry__form=self.form
            ).order_by("-entry__id").select_related(depth=1)




I do not think that the related name is known ahead of time in this.  Can anyone suggest how to fix this?  






--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc           +55 21 994711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Reply all
Reply to author
Forward
0 new messages