Closed Ramin-RX7 closed 1 year ago
In the orders app, create a new field called status.
This field must use models.TextChoices
the available options in status field:
the default must be pending
pending
add these methods:
approved
paid
This status field has to be seen in the orders view template
orders
Remove the available quantity from the Food model.
available quantity
Search through the project and remove anything related to this field (example: templates, model methods, views, ...)
Part 1
In the orders app, create a new field called status.
This field must use models.TextChoices
the available options in status field:
the default must be
pending
add these methods:
approved
paid
(don't forget to save the object after these changes)This status field has to be seen in the
orders
view templatePart 2
Remove the
available quantity
from the Food model.Search through the project and remove anything related to this field (example: templates, model methods, views, ...)