Commit bdd5327d authored by Santiago Said's avatar Santiago Said
Browse files

[FIX] f-strings

parent 7a25b71c
......@@ -14,11 +14,11 @@ class HRUnionMembership(models.Model):
for rec in self:
name = ''
if rec.name and rec.code:
name = f'{rec.code} - {rec.name}'
name = '{} - {}'.format(rec.code, rec.name)
elif rec.name:
name = f'{rec.name}'
name = '{}'.format(rec.name)
elif rec.code:
name = f'{rec.code}'
name = '{}'.format(rec.code)
res.append((rec.id, name))
return res
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment