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")
>
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
2 matches
Mail list logo