Skip to content

Commit 9e462c5

Browse files
committed
[LNT] estate: finally installed a linter
1 parent f6264e1 commit 9e462c5

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

estate/models/estate_property.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ class EstateProperty(models.Model):
1010
name = fields.Char(required=True)
1111
description = fields.Text(string="Description")
1212
postcode = fields.Char()
13-
date_availability = fields.Date(string="Date Availability", copy=False, default=datetime.date.today()+relativedelta(months=3))
13+
date_availability = fields.Date(
14+
string="Date Availability",
15+
copy=False,
16+
default=datetime.date.today() + relativedelta(months=3),
17+
)
1418
expected_price = fields.Float(required=True)
1519
selling_price = fields.Float(readonly=True, copy=False)
1620
bedrooms = fields.Integer(default=2)
@@ -19,12 +23,20 @@ class EstateProperty(models.Model):
1923
garage = fields.Boolean()
2024
garden = fields.Boolean()
2125
garden_area = fields.Integer()
22-
garden_orientation = fields.Selection([('north', "North"), ('east', "East"), ('south', "South"), ('west', "West")])
26+
garden_orientation = fields.Selection(
27+
[("north", "North"), ("east", "East"), ("south", "South"), ("west", "West")]
28+
)
2329
active = fields.Boolean(default=True)
2430
state = fields.Selection(
2531
string="Status",
26-
selection=[('new', "New"), ('offer_received', "Offer Received"), ('offer_accepted', "Offer Accepted"), ('sold', "Sold"), ('cancelled', "Cancelled")],
27-
required=True,
28-
copy=False,
29-
default="new"
32+
selection=[
33+
("new", "New"),
34+
("offer_received", "Offer Received"),
35+
("offer_accepted", "Offer Accepted"),
36+
("sold", "Sold"),
37+
("cancelled", "Cancelled"),
38+
],
39+
required=True,
40+
copy=False,
41+
default="new",
3042
)

0 commit comments

Comments
 (0)