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
Refactor Ban Logic: Introduced BanUser Model and Tests
Refactored User Ban Logic: Moved ban-related functionality from the User model to a new BanUser model. This creates a separation section within the admin section allowing an administration to easily use the Ban features instead of having it all in the User model admin
Admin Integration: Added the BanUser model to the Django admin panel for easier management.
Enhanced Model: Implemented methods for banning, unbanning, and checking ban status with support for both permanent and temporary bans.
Tests: Created comprehensive tests for the BanUser model, including checks for ban attributes, proper functionality of ban methods, and correct handling of ban expiration.
Refactor Ban Logic: Introduced
BanUser
Model and TestsUser
model to a newBanUser
model. This creates a separation section within the admin section allowing an administration to easily use the Ban features instead of having it all in the User model adminBanUser
model to the Django admin panel for easier management.BanUser
model, including checks for ban attributes, proper functionality of ban methods, and correct handling of ban expiration.Todo