Thanks, ideally OneToOneField is what I need, but due to weird legacy
database schema, I can't use it. id is a bad name, but I would have to
deal with the nomenclature for the moment. Thanks for help
On Aug 19, 9:37 am, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> There's quite a lot wrong with
saeb wrote:
> No, that is not the real code. The real code as you mentioned is split
> into models.py and admin.py. And I am referring to the functions as
> strings ( a typo on my part). After posting the message last night I
> messed with the code more and function is displaying as 'none' .
> Ref
There's quite a lot wrong with this code, quite apart from the
list_display issue. Comments interspersed below.
On Aug 19, 2:33 pm, saeb <[EMAIL PROTECTED]> wrote:
> No, that is not the real code. The real code as you mentioned is split
> into models.py and admin.py. And I am referring to the fun
No, that is not the real code. The real code as you mentioned is split
into models.py and admin.py. And I am referring to the functions as
strings ( a typo on my part). After posting the message last night I
messed with the code more and function is displaying as 'none' .
Referring to Malcolm's la
On Mon, 2008-08-18 at 20:50 -0700, saeb wrote:
>
> Sorry to ask a stupid question, but following is my basic model
> structure. I want to create a custom manager for a class which has a
> foreignKey to another class. And to call that manager function in list
> display to display all the related
apparently i pasted that in there twice. woops...
On Aug 19, 8:57 am, ocgstyles <[EMAIL PROTECTED]> wrote:
> Hi saeb,
>
> I believe you misunderstand the purpose of select_related(). When
> used, it does the extra database work to retrieve related objects at
> the beginning, rather than when yo
Hi saeb,
I believe you misunderstand the purpose of select_related(). When
used, it does the extra database work to retrieve related objects at
the beginning, rather than when you try to access them. Here's an
example:
# in this example, notice how __dict__ isn't populated with the
_site_cache
Sorry to ask a stupid question, but following is my basic model
structure. I want to create a custom manager for a class which has a
foreignKey to another class. And to call that manager function in list
display to display all the related properties. Am I doing it right? I
don't see any associat
8 matches
Mail list logo