Re: User not Authenticating.

2023-04-24 Thread Opeoluwa Fatunmbi
Let me see your login.html On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel < oluwasheun9...@gmail.com> wrote: > code here: > > def loginPage(request): > if request.method == "POST": > username = request.POST.get("username") > password = request.POST.get("password") >

Re: Django Admin does not use `get_FOO_display`

2023-04-05 Thread Opeoluwa Fatunmbi
The reason why your overridden get_status_display method is not being applied in the Django admin is because the admin's display_for_field function uses the flatchoices attribute of the field to retrieve the display value of the field's current value. The flatchoices attribute is a list of