django query based on dynamic property()
问题 I was wondering if there was a way to use Django's filter() on query sets using a dynamically generated python property using property() . I have first_name and last_name of every user, and I want to filter based on their concatenated name first_name last_name . (The reason behind this is that when I do autocomplete I search to see if the query matches first name, last name, or part of the concatenation. I want John S to match John Smith , for example. I created a property of name : def _get