From 0b7ffa8106a3cc147f3bd5c36c799d56f52f99f4 Mon Sep 17 00:00:00 2001 From: Nick at Apero Date: Thu, 7 Nov 2024 17:04:47 -0800 Subject: [PATCH] Fix typo with error message --- graphene_django_cud/util/model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphene_django_cud/util/model.py b/graphene_django_cud/util/model.py index 7ce614f..b119ddb 100644 --- a/graphene_django_cud/util/model.py +++ b/graphene_django_cud/util/model.py @@ -166,7 +166,7 @@ def get_input_fields_for_model( field: models.ForeignKey = fields_lookup.get(name) if field is None: - raise ValueError(f"Error adding extras for {name} in model f{model}. Field {name} does not exist.") + raise ValueError(f"Error adding extras for {name} in model {model}. Field {name} does not exist.") type_name = data.get("type") @@ -205,7 +205,7 @@ def get_input_fields_for_model( field: Union[models.OneToOneRel, models.OneToOneField] = fields_lookup.get(name) if field is None: - raise ValueError(f"Error adding extras for {name} in model f{model}. Field {name} does not exist.") + raise ValueError(f"Error adding extras for {name} in model {model}. Field {name} does not exist.") type_name = data.get("type") @@ -239,7 +239,7 @@ def get_input_fields_for_model( for name, extras in many_to_many_extras.items(): field: Optional[Union[models.ManyToManyField, models.ManyToManyRel]] = fields_lookup.get(name) if field is None: - raise GraphQLError(f"Error adding extras for {name} in model f{model}. Field {name} does not exist.") + raise GraphQLError(f"Error adding extras for {name} in model {model}. Field {name} does not exist.") for extra_name, data in extras.items(): @@ -256,7 +256,7 @@ def get_input_fields_for_model( for name, extras in many_to_one_extras.items(): field: models.ManyToOneRel = fields_lookup.get(name) if field is None: - raise GraphQLError(f"Error adding extras for {name} in model f{model}. Field {name} does not exist.") + raise GraphQLError(f"Error adding extras for {name} in model {model}. Field {name} does not exist.") for extra_name, data in extras.items():