mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 12:42:52 -06:00
fix internationalization for string
This commit is contained in:
parent
28b867bde4
commit
77d0e9032a
@ -214,7 +214,7 @@ class Job(models.Model):
|
|||||||
management commands only.
|
management commands only.
|
||||||
"""
|
"""
|
||||||
if schedule_at and immediate:
|
if schedule_at and immediate:
|
||||||
raise ValueError("enqueue() cannot be called with values for both schedule_at and immediate.")
|
raise ValueError(_("enqueue() cannot be called with values for both schedule_at and immediate."))
|
||||||
|
|
||||||
if instance:
|
if instance:
|
||||||
object_type = ObjectType.objects.get_for_model(instance, for_concrete_model=False)
|
object_type = ObjectType.objects.get_for_model(instance, for_concrete_model=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user