Skip to content

Commit

Permalink
Merge pull request #135 from nshelly/nick/fix-typo
Browse files Browse the repository at this point in the history
Fix typo with error message
  • Loading branch information
tOgg1 authored Nov 11, 2024
2 parents e6635a8 + 0b7ffa8 commit 86654aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphene_django_cud/util/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,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")

Expand Down Expand Up @@ -231,7 +231,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")

Expand Down Expand Up @@ -266,7 +266,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():

Expand All @@ -283,7 +283,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():

Expand Down

0 comments on commit 86654aa

Please sign in to comment.