Re: Filter FieldError
That worked! Thank you!! On Tue, Jul 3, 2012 at 4:33 PM, Jon Blackwrote: > I think you need a double underscore: > > fieldname__startswith > > On Tue, Jul 3, 2012, at 02:47, Saroja Parameswaran wrote: > > While using filters on Django objects, I get the below error message. > Except equals, all the other options like _startswith, _exact, _iexact > shows the same error. I am using Django 1.4. > > > FieldError: Cannot resolve keyword 'fieldname_exact' into field. Choices > are: > > > Can anyone tell me the solution? > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/NJDqAyZcunAJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Filter FieldError
On Tue, 2012-07-03 at 02:47 -0700, Saroja Parameswaran wrote: > Can anyone tell me the solution? double underscore __ -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Filter FieldError
I think you need a double underscore: fieldname__startswith On Tue, Jul 3, 2012, at 02:47, Saroja Parameswaran wrote: While using filters on Django objects, I get the below error message. Except equals, all the other options like _startswith, _exact, _iexact shows the same error. I am using Django 1.4. FieldError: Cannot resolve keyword 'fieldname_exact' into field. Choices are: Can anyone tell me the solution? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit [1]https://groups.google.com/d/msg/django-users/-/NJDqAyZcunAJ . To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. References 1. https://groups.google.com/d/msg/django-users/-/NJDqAyZcunAJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Filter FieldError
While using filters on Django objects, I get the below error message. Except equals, all the other options like _startswith, _exact, _iexact shows the same error. I am using Django 1.4. > FieldError: Cannot resolve keyword 'fieldname_exact' into field. Choices > are: > Can anyone tell me the solution? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/NJDqAyZcunAJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.