his successfully get the queryset of A
Thank you again.
John Wang
2009-12-04
-
From: Russell Keith-Magee
Date: 2009-12-04 10:11:16
To: django-users
Cc:
Subject: Re: How can I know the foreign key model at ru
access the manager of A through class B? e,g I want to:
>>> manager_of_a = B.some_api_i_dont_know
>>> queryset_a = manager_of_a.all()
Any idea ?
On Dec 3, 6:39 pm, John Wang wrote:
> Hi all,
>
> Given the following simple models:
>
> from django.db
Hi all,
Given the following simple models:
from django.db import models
class A(models.Model):
att=models.CharField(max_length=256)
class B(models.Model):
fk = models.ForeignKey(A)
My question is , if I have a variable of B class, how can I know what
is the model its 'fk' is refering t
Thanks Kristaps ,
I finally found the http://github.com/dcramer/coffin coffin package is
just what i need. It works well as far as context processor and middleware
are concerned.
Kristaps Kūlis wrote:
>
> Hi!
> You can use RequestContext (and also middlewares and context processor).
> Just
Hi all,
I want to use Jinja2 in a django project but keep some features
django, e.g, middleware and context processor.
My question is, can I still use middleware and contextprocess in
django when replace it template with Jinja2 ?
BTW, what most i like jinja2 is that i can define macros in it wh
5 matches
Mail list logo