✏️(project) fix minor typos
Found typos and fixed them.
This commit is contained in:
committed by
aleb_the_flash
parent
ec2fcaa1dd
commit
c117f67952
@@ -140,7 +140,7 @@ class Contact(BaseModel):
|
||||
try:
|
||||
jsonschema.validate(self.data, contact_schema)
|
||||
except jsonschema.ValidationError as e:
|
||||
# Specify the property in the data in which the error occured
|
||||
# Specify the property in the data in which the error occurred
|
||||
field_path = ".".join(map(str, e.path))
|
||||
error_message = f"Validation error in '{field_path:s}': {e.message}"
|
||||
raise exceptions.ValidationError({"data": [error_message]}) from e
|
||||
|
||||
@@ -8,7 +8,7 @@ from core import factories, models
|
||||
pytestmark = pytest.mark.django_db
|
||||
|
||||
|
||||
def test_models_oidc_user_getter_exsting_user_no_email(django_assert_num_queries):
|
||||
def test_models_oidc_user_getter_existing_user_no_email(django_assert_num_queries):
|
||||
"""
|
||||
When a valid token is passed, an existing user matching the token's sub should be returned.
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Management command overrring the "createsuperuser" command to allow creating users
|
||||
Management command overriding the "createsuperuser" command to allow creating users
|
||||
with their email and no username.
|
||||
"""
|
||||
from django.contrib.auth import get_user_model
|
||||
@@ -9,7 +9,7 @@ User = get_user_model()
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
"""Management command to create super users from an email and a password"""
|
||||
"""Management command to create superusers from an email and a password"""
|
||||
|
||||
help = "Create a superuser with an email and a password"
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ def get_release():
|
||||
|
||||
class Base(Configuration):
|
||||
"""
|
||||
This is the base configuration every configuration (aka environnement) should inherit from. It
|
||||
This is the base configuration every configuration (aka environment) should inherit from. It
|
||||
is recommended to configure third-party applications by creating a configuration mixins in
|
||||
./configurations and compose the Base configuration with those mixins.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user