Hi,
Hadn't read the new docs before answering.> Also, once you have become comfortable with this approach you could> add some code such as _get_ingredients (in the Recipe class) and> _get_recipes (in the Ingredients class) for easy access to the related
> data.> Ignore above paragraph and look at
Hi,
> Just give an amount field to the Ingredient:
>
> class Ingredient(meta.Model):
> fields = (
> meta.CharField('name', 'Name', maxlength=64),
> meta.CharField('description', 'Description', maxlength=128,
> blank=True),
> meta.FloatField('amount','Amount', max_digi
On Jul 31, 2005, at 3:36 PM, Chuck Thier wrote:
Since there has been no docs on sessions yet, I have been looking
through the code to figure out how to use anonymous sessions. The
only problem is that it looks like it sets the session object in the
response to None if it is an anonymous user, a
Just give an amount field to the Ingredient:
class Ingredient(meta.Model):
fields = (
meta.CharField('name', 'Name', maxlength=64),
meta.CharField('description', 'Description', maxlength=128,
blank=True),
meta.FloatField('amount','Amount', max_digits=5,
decimal_places=
2005/7/31, Chuck Thier <[EMAIL PROTECTED]>:
>
> Since there has been no docs on sessions yet, I have been looking
> through the code to figure out how to use anonymous sessions. The
> only problem is that it looks like it sets the session object in the
> response to None if it is an anonymous us
Since there has been no docs on sessions yet, I have been looking
through the code to figure out how to use anonymous sessions. The
only problem is that it looks like it sets the session object in the
response to None if it is an anonymous user, and I'm not sure what to
do at that point. Anyone
Maybe another option would be injecting custom User class? Something like:
from myproject.mymodel import Appuser
from django.model import auth
auth.User = Appuser
2005/7/31, Django <[EMAIL PROTECTED]>:
>
> Yes, that's how it looks. The session class also has a lot of useful
> code, but again i
7 matches
Mail list logo