As a developer, I want to create an Order app with Order and OrderLine models so that I can manage customer orders and their associated products within the platform.
Objective
To set up an Order app that includes Order and OrderLine models, capturing all necessary information about customer orders and the products within those orders, supporting the order management and checkout process.
Acceptance Criteria
An Order app is created within the Django project.
An Order model is defined.
An OrderLine model is defined.
The Order model correctly aggregates multiple OrderLine items.
The models are registered in the Django admin for management.
Migrations are created and applied to generate the database tables for the models.
Relationships between Order and OrderLine models are established correctly.
The models are tested to ensure they work as expected and store data accurately.
Tasks
[x] Create an Order app in the Django project.
[x] Define the Order model with appropriate fields and relationships.
[x] Define the OrderLine model with appropriate fields and relationships.
[x] Register both models in the Django admin.
[x] Create and apply migrations to update the database schema.
[x] Write unit tests to verify the integrity of the Order and OrderLine models.
[x] Test the models within the Django admin to ensure proper functionality.
As a developer, I want to create an Order app with Order and OrderLine models so that I can manage customer orders and their associated products within the platform.
Objective
To set up an Order app that includes Order and OrderLine models, capturing all necessary information about customer orders and the products within those orders, supporting the order management and checkout process.
Acceptance Criteria
Order
model is defined.OrderLine
model is defined.Order
model correctly aggregates multipleOrderLine
items.Tasks
Order
model with appropriate fields and relationships.OrderLine
model with appropriate fields and relationships.