Skip to content

Commit 8890262

Browse files
[IMP] real_estate: refine property model field data types
- The 'postcode' field has been changed to a Char type to accommodate various international postal code formats. - The 'living_area' field has been updated to a Float type to allow for more precise measurements of living space in square meters (sqm). Chapter #5
1 parent 847c363 commit 8890262

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

estate/models/estate_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class EstateProperty(models.Model):
2626
help="Type is used to specify the garden orientation"
2727
)
2828
garage = fields.Boolean(string="Garage")
29-
living_area = fields.Integer(string="Living Area (sqm)")
29+
living_area = fields.Float(string="Living Area (sqm)")
3030
name = fields.Char(string="Title", required=True, default="Unknown")
31-
postcode = fields.Integer(string="Postcode")
31+
postcode = fields.Char(string="Postcode")
3232
selling_price = fields.Float(
3333
string="Selling Price", readonly=True, copy=False)
3434
state = fields.Selection([('new', "New"),

0 commit comments

Comments
 (0)