Explorar o código

fix internationalization for string

Arthur Hanson %!s(int64=2) %!d(string=hai) anos
pai
achega
77d0e9032a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/core/models/jobs.py

+ 1 - 1
netbox/core/models/jobs.py

@@ -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)