Re: the version 2.0.1 login function refuses to take arguments... Login(request user)

2018-01-24 Thread Ozzy Walsh
On Thursday, January 25, 2018 at 4:50:10 AM UTC, Ozzy Walsh wrote: > > It would be helpful if you included the code associated with this as well. > > On Thursday, January 25, 2018 at 12:37:24 AM UTC, simon munuve wrote: >> >> Check the attached file ... >> > The actual code. Nobody can tell how

Re: the version 2.0.1 login function refuses to take arguments... Login(request user)

2018-01-24 Thread Ozzy Walsh
It would be helpful if you included the code associated with this as well. On Thursday, January 25, 2018 at 12:37:24 AM UTC, simon munuve wrote: > > Check the attached file ... > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

the version 2.0.1 login function refuses to take arguments... Login(request user)

2018-01-24 Thread simon munuve
Check the attached file ... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to djan

Re: request user

2016-04-20 Thread Avraham Serour
if you can get the request object you can get the current user with request.user On Mon, Apr 18, 2016 at 9:38 PM, Elias Coutinho wrote: > Good afternoon people, > > I am using django material, LayoutMixin > > My view is: > > class NewProfissoesPessoaView (LoginRequiredMixin, LayoutMixin, >

request user

2016-04-18 Thread Elias Coutinho
Good afternoon people, I am using django material, LayoutMixin My view is: class NewProfissoesPessoaView (LoginRequiredMixin, LayoutMixin, extra_views.NamedFormsetsMixin, extra_views.CreateWithInlinesView): title = "New Job" model = ProfissoesPesso

how to fill foreign key hidden field with reference to request user in django 1.0

2010-03-04 Thread André
Hi, I'm using django 1.0 and I have in my model a foreign key to the User table. I want to fill this with the user which is creating the entry and I understood I can do it in the save_model method: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model