Open gokulprathin8 opened 3 years ago
Hi, @rohithmsr I am hereby assigning this issue to you. However, I appreciate more than 1 person working on this. If anyone else is interested. Please comment here,
So let me work on Backend first
Yes, I would like to work on it!
Yes, I would like to work on it!
Hi,
@GVaruni19, Thanks for your interest. You have been assigned the issue.
The model ProductMeasurements doesn't store the units (like kg, km, inch etc). It stores only the magnitude in the database.
So my questions are:
1) Why not keep measurements fields in product itself? 2) Shall we use any alternative to django_measurements.MeasurementField ?
@gokulprathin8 @GVaruni19
The model ProductMeasurements doesn't store the units (like kg, km, inch etc). It stores only the magnitude in the database.
So my questions are:
1) Why not keep measurements fields in product itself? 2) Shall we use any alternative to django_measurements.MeasurementField ?
@gokulprathin8 @GVaruni19
Product Management stores metrics like kg, inch etc.. to database. DO NOT merge this with Product.
Because, ProductMeasuremets should be a foreign key to the Product. In that way it is easy to compute net values, net order worth with correct dimensions
Django Dimensions helps us to seamlessly convert one metric to another without any additional code.
@rohithmsr
@rohithmsr @GVaruni19
Just to make things clear. You can view these images. The way how they are stored in database and Admin look and feel.
I already checked this through pgAdmin, but where are the units given ??, it has only selection details right?
@gokulprathin8
I already checked this through pgAdmin, but where are the units given ??, it has only selection details right?
@gokulprathin8
@rohithmsr ,
Django Dimensions, in this case by default, takes the value in the smallest terms.
For example, for 1 Kg it stores the data as 1000 grams It stores it as MASS and defaults to grams.
@rohank2502 is there any issue with this implementation ?
Made a pull request, Please use Postman for testing @gokulprathin8
Hi @rohithmsr,
code will be reviewed shortly and merged to the main branch.
Thank you for the contribution #Level3
please assign me this
May I take this issue?? @gokulprathin8