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
BanUserAdminForm
to allow issuing temporary bans from the BanModel when an admin or superuser saves it in the admin interface.save
method inBanUserAdminForm
to calculate ban duration and trigger notifications.clean
method to ensure thatban_expires_on
is later thanban_start_date
.date_ban_was_issued
toban_start_date
for improved clarity and consistency.calculate_days_between_dates
inside a file calleddates.py
inside the utils folder to compute the number of days between two dates.TempBannedUserProxy
andAdminBTempBannedUserProxy
to allow admins to view only users who are temporarily banned in the admin interface.UserBanAdmin
to display custom fields such asban_duration_days
andremaining_days
.To Do: