Fullstack Fruit & Veg Shop: A web application developed with HTML, CSS, and JavaScript for the frontend, and Django for the backend. Features include user authentication, a product catalogue, shopping cart functionality, and order management. and much more
Error 1: Resolved issue where attempting to check is_user_already_banned() on a non-existent user_ban_record
caused a NoneType error. Now, if the user doesn't exist, the check handles it safely without raising an exception.
Error 2: Removed the ban_reason parameter from the ban_for_x_amount_of_days(num_of_days_to_ban, save=False) method,
because it can now initialised during the creation of the BanModel. This slight adjustment now aligns with recent refactoring
of the BanModel.
Error 1: Resolved issue where attempting to check
is_user_already_banned()
on a non-existentuser_ban_record
caused aNoneType
error. Now, if the user doesn't exist, the check handles it safely without raising an exception.Error 2: Removed the
ban_reason
parameter from theban_for_x_amount_of_days(num_of_days_to_ban, save=False)
method, because it can now initialised during the creation of theBanModel
. This slight adjustment now aligns with recent refactoring of theBanModel
.