checks the URL and if the URL is not valid, it returns 404 page
implements all of the tabs in the product detail page
refactors every view that is related to product detail. Now, product_management/views.py is much cleaner
combines ProductOrganisation and ProductRole models into single model called ProductPerson
updates load_sample_data.py script to adapt the new changes that are made in the models
separates templates into reusable chunks and uses template inheritance as much as possible
Product detail view almost finished. There are minor details such as displaying the image and the twitter URL of a person. Since they are simple tasks, I will fix them in the following PR.
EDIT
I also replaced the earlier dataset for Product and Person models with more realistic dataset. Additionally, added new fields to Person model
This PR:
product_management/views.py
is much cleanerProductOrganisation
andProductRole
models into single model calledProductPerson
load_sample_data.py
script to adapt the new changes that are made in the modelsProduct detail view almost finished. There are minor details such as displaying the image and the twitter URL of a person. Since they are simple tasks, I will fix them in the following PR.
EDIT
I also replaced the earlier dataset for
Product
andPerson
models with more realistic dataset. Additionally, added new fields toPerson
model