I have a model similar to:
===================
class User:
    first_name = CharField()
    last_name  = CharField()

   def get_full_name(self):
        return "%s %s" % (self.first_name, self.last_name)
===================
Is there a way I can search by full name (without storing the
calculated full name in the database)?
Something like...
User.objects.filter(get_full_name__iequals="Gary Wilson")


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to