﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
714	access to id of current user on admin	flavio.curella@…	Adrian Holovaty	"The model code of admin application doesn't have access to the request, so if I want to save the id of user that is creating the poll, I can't access to it.

this may be more clear, something like this should work:

from django.core import meta
from django.models.auth import User

# Create your models here.
class Poll(meta.Model):
    question = meta.CharField(maxlength=200)
    pub_date = meta.DateTimeField('date published')
    author = meta.ForeignKey(User, default=User.id)
    class META:
		admin = meta.Admin()"	enhancement	closed	contrib.admin	dev	normal	duplicate			Unreviewed	0	0	0	0	0	0
