Skip to content

Commit 7dc2f6e

Browse files
committed
[FIX] estate: Fix required field needed in expected price and a typo
1 parent c8637b4 commit 7dc2f6e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

estate/models/estate_property.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ class EstateProperty(models.Model):
88
description = fields.Text('Description')
99
postcode = fields.Char('Poscode', default='1000')
1010
date_availability = fields.Date('Date availability')
11-
expected_price = fields.Float('Expected price')
11+
expected_price = fields.Float('Expected price', required=True)
1212
selling_price = fields.Float('Selling price')
1313
bedrooms = fields.Integer('Bedrooms')
1414
living_area = fields.Integer('Living Area')
1515
facades = fields.Integer('Facades')
1616
garage = fields.Boolean('Garage')
1717
garden = fields.Boolean('Garden')
1818
garden_area = fields.Integer('Garden Area')
19-
garden_orientation = fields.Selection('Gordden orientation', selection=[('north', 'North'), ('south', 'South'), ('east', 'East'), ('west', 'West')])
19+
garden_orientation = fields.Selection(selection=[
20+
('north', 'North'),
21+
('south', 'South'),
22+
('east', 'East'),
23+
('west', 'West')
24+
], string='Garden orientation')

0 commit comments

Comments
 (0)