Changing the admin edit window display values
- by Henri
I have a database table with e.g. a weight value e.g.
CREATE TABLE product (
id SERIAL NOT NULL,
product_name item_name NOT NULL,
.
.
weight NUMERIC(7,3), -- the weight in kg
.
.
CONSTRAINT PK_product PRIMARY KEY (id)
);
This results is the model:
class Product(models.Model):
.
weight =…