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
Overridden __init__ method of IssueGiftCardForm to set the initial value of the amount field to the existing value of the gift card when editing.
Added a filter for the GiftCard admin now it can be filtered by whether it is active, doesn't expire and user. Added an active in admin form so the admin would be able to disable or activate a gift card
The goal of this update is improve the admin experience by showing the current amount of a gift card when editing it,
ensuring that the original value is visible and editable as well as allowing them to disable or activate a gift card.
__init__
method ofIssueGiftCardForm
to set the initial value of theamount
field to the existing value of the gift card when editing.Added a filter for the GiftCard admin now it can be filtered by whether it is active, doesn't expire and user. Added an active in admin form so the admin would be able to disable or activate a gift card
The goal of this update is improve the admin experience by showing the current amount of a gift card when editing it, ensuring that the original value is visible and editable as well as allowing them to disable or activate a gift card.