Re: Getting data from table with name logged in user

2016-12-28 Thread Antonis Christofides
I think what you want is self.request.user.username or something like that. At the documentation take a look at "Request and response objects". Regards, Antonis Antonis Christofides http://djangodeployment.com On 12/28/2016 10:35 AM, Ernst van der Heijden wrote: > Hello everyone, > > I'm new to

Getting data from table with name logged in user

2016-12-28 Thread Ernst van der Heijden
Hello everyone, I'm new to Django and have a problem. I have a table in my database with records that contains data for different users. All I need to do is listing that data with a list_view for the user that is logged in. My code now looks like this: class RoosterListView(LoginRequiredMixin,