om/en/dev/ref/contrib/admin/#modeladmin-methods
On May 18, 7:01 am, Alfredo Alessandrini wrote:
> Hi,
>
> I'm write a model for a post.
>
> Can I access to id of current user on admin site?
>
> I'm trying with:
>
> author = models.ForeignKey(User, default=U
Hi,
I'm write a model for a post.
Can I access to id of current user on admin site?
I'm trying with:
author = models.ForeignKey(User, default=User.id, blank=True, null=True)
But don' work...
Thanks,
Alfredo
--
from django.db imp
2 matches
Mail list logo