I have a method that evaluates the incoming "HttpRequest" from a webpage. As such, I'll use the following call to retrieve the data:
>> person_id = request.GET.get('person_id', '') At this point, assuming I have a valid value for "some_id", I'd like to use it in this statement: >> results = Person.objects.get(person_id=???) (NOTE: "person_id" is a member of the Person class) I'm new to Python/Django, so my initial guess is that the "???" should be replaced with either: >> results = Person.objects.get(person_id='%d' % (person_id)) ... or ... >> results = Person.objects.get(person_id=person_id) Is either guess correct? I've been digging through DjangoBook.com and I can't find any examples of this common paradigm. HELP! --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---