Ramin-RX7 / CafeMenu

Café management website with custom dashboard panel for staff
MIT License
2 stars 4 forks source link

Add status field to Order model (and remove available quantity from Food) #112

Closed Ramin-RX7 closed 1 year ago

Ramin-RX7 commented 1 year ago

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:

This status field has to be seen in the orders view template

Part 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, ...)