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
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.
--~--~-~--~~---
_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
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
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
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
6 matches
Mail list logo