Re: Using authenticated users id in models

2008-12-17 Thread bruno desthuilliers
On 17 déc, 17:08, abidibo wrote: > Hi all, > I'm a beginenr with Django and Python And possibly with web programming AFAICT - but we won't hold it against you !-) > and I'e have a problem I didn't > reached to solved myself, here is the question: > I'd like to have a DB table like POST, that co

Re: Using authenticated users id in models

2008-12-17 Thread adelevie
I'm also somewhat of a beginner, but here goes... You might want to separate your model from your view a bit more. http://dpaste.com/hold/100082/ On Dec 17, 11:08 am, abidibo wrote: > Hi all, > I'm a beginenr with Django and Python and I'e have a problem I didn't > reached to solved myself, he

Using authenticated users id in models

2008-12-17 Thread abidibo
Hi all, I'm a beginenr with Django and Python and I'e have a problem I didn't reached to solved myself, here is the question: I'd like to have a DB table like POST, that contains a title, a text and an author. I'd like the field author to be filled with the id of the user which is writing the form