Re: field error in live how to reslove

2019-12-20 Thread James Dunn
double underscore needed before the lte by the looks of it On Wed, 18 Dec 2019 at 04:27, Ahmad Ebrahim wrote: > Show me your model and view > > On Tue, 17 Dec 2019, 20:11 MEGA NATHAN, wrote: > >> Hi all. >> >> field error in live how to reslove >> below i have to attach the screensh please find

Re: How to display on Django page based on user's condition?

2019-11-21 Thread James Dunn
In your view you can do: user = request.user Then you can get Employee with: employee = Employee.objects.get(user=user) Then just get the attributes from the models that you need: eg: employee.division On Thu, 21 Nov 2019 at 19:57, Pema Galey wrote: > Hi All, > I am Employee model directly