Tuesday, January 4, 2022

Re: Employee matching query does not exist

name column row's data not matching from database

Show that you are getting error .


So we use the Expection then you can easily handle the error ..

On Tue, 4 Jan 2022, 8:05 pm yassin kamanyile, <yassinheri9@gmail.com> wrote:
please team ..i  got an error from that line below

obj.employee = Employee.objects.get(name=self.request.POST.get('employee_id'))

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d469b11-33f5-49bb-a984-76f53a2e08c8n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOAROfn%2Bd7C4JDSAFZpqoSm2kVxCBL16qdA93PS0oXvRD3-VoA%40mail.gmail.com.

No comments:

Post a Comment