Re: Django bug that should be addressed: Idle timeouts do not clear session information

2009-03-17 Thread huu...@gmail.com
On Mar 17, 10:45 pm, Jacob Kaplan-Moss wrote: > On Tue, Mar 17, 2009 at 8:55 PM, Huuuze wrote: > > 7.  Django detects the missing cookie > > I think this is where you're getting hung up. Django doesn't "detect" > a "missing" cookie; Django sees a request from a browser that doesn't > include a c

Is it possible to access foreign-keyed properties using values_list()?

2009-06-29 Thread huu...@gmail.com
I'd like to use values_list() to populate a choices attribute. However, I need to access some foreign-keyed properties to properly display the information. For example: >> Books.objects.values_list('id', 'author__name') Currently, it doesn't appear to be working. --~--~-~--~~---

Re: Is it possible to access foreign-keyed properties using values_list()?

2009-06-29 Thread huu...@gmail.com
_name + ' ' + self.last_name I've tried to access "author__get_full_name" but have not been successful. On Jun 29, 10:46 am, Karen Tracey wrote: > On Mon, Jun 29, 2009 at 10:27 AM, huu...@gmail.com wrote: > > > I'd like to use values_list() to populate a choice

Strange behavior with Django ORM and tabbed browsing

2009-05-28 Thread huu...@gmail.com
Consider the following: I have two Person records (Person A and Person B). A Person can have many Books. As such, Person A has one Book and Person B has 4 Books (Book has a foreign key relationship to Person). For the sake of clarity, here are my models: class Person(models.Model): name = m

Is it possible to override the method used to call Django’s admin delete confirmation page?

2009-06-18 Thread huu...@gmail.com
On Django's admin pages, I'd like to perform an action when the administrator clicks the Delete button for an object. In other words, I'd like to execute some code prior to arriving on the "Are you sure?" delete confirmation page. I realize I could override the template page for this object, but

Re: Is it possible to override the method used to call Django’s admin delete confirmation page?

2009-06-18 Thread huu...@gmail.com
pect to see "it worked" in my logs. Unfortunately, no such luck. On Jun 18, 4:55 pm, Daniel Roseman wrote: > On Jun 18, 9:41 pm, "huu...@gmail.com" wrote: > > > On Django's admin pages, I'd like to perform an action when the > > administrator clicks