We have two get_photo_url() methods: the first one in the Product model and the second one in the Person model.
They have pretty much the same implementation. However, they shouldn't have. They return a requires_upload parameter which is not used most of the time. Additionally, the Product model's get_photo_url() method has the same default picture as the Person model's get_photo_url() method has. We need to have a different default image for the Product model's method.
The task is to refactor those methods and every template and Python file that use these methods.
We have two
get_photo_url()
methods: the first one in theProduct
model and the second one in thePerson
model.They have pretty much the same implementation. However, they shouldn't have. They return a
requires_upload
parameter which is not used most of the time. Additionally, theProduct
model'sget_photo_url()
method has the same default picture as thePerson
model'sget_photo_url()
method has. We need to have a different default image for theProduct
model's method.The task is to refactor those methods and every template and Python file that use these methods.