mirror of
https://github.com/daniviga/django-ram.git
synced 2025-10-19 09:00:32 +02:00
Run black
This commit is contained in:
@@ -121,7 +121,8 @@ class RollingStock(models.Model):
|
||||
def pre_save_running_number(sender, instance, *args, **kwargs):
|
||||
try:
|
||||
instance.road_number_int = int(
|
||||
re.findall(r"\d+", instance.road_number)[0])
|
||||
re.findall(r"\d+", instance.road_number)[0]
|
||||
)
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user