Re: passing user id from current session to model

2007-09-24 Thread heru
wow, thanks richard, django-python project makes me in the middle of nowhere i'm from indonesia with small bandwidth, no local django community, small and slow local python community on mailing-list...damn hell!! thanks for help -heru- new kid on django On Sep 25, 12:09 am, "Richard Dahl" <[EMA

Re: passing user id from current session to model

2007-09-24 Thread Richard Dahl
Take a look at: http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser -richard On 9/24/07, heru <[EMAIL PROTECTED]> wrote: > > > Hi, > i'm new in django and python as well. > i'm trying to create a model for my article > > from django.db import models > from django.contrib.auth.models im

passing user id from current session to model

2007-09-24 Thread heru
Hi, i'm new in django and python as well. i'm trying to create a model for my article from django.db import models from django.contrib.auth.models import User class Article(models.Model): title = models.CharField(maxlength=32) content = models.TextField() publish = models.DateTimeField()