You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Creating records with empty ForeignKeys fails by default, even when allow_null is True #162
Traceback (most recent call last):
File "/projects/__pypackages__/3.10/lib/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/projects/__pypackages__/3.10/lib/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/projects/__pypackages__/3.10/lib/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "/projects/__pypackages__/3.10/lib/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/projects/__pypackages__/3.10/lib/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/projects/__pypackages__/3.10/lib/starlette/middleware/exceptions.py", line 75, in __call__
raise exc
File "/projects/__pypackages__/3.10/lib/starlette/middleware/exceptions.py", line 64, in __call__
await self.app(scope, receive, sender)
File "/projects/__pypackages__/3.10/lib/starlette/routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "/projects/__pypackages__/3.10/lib/starlette/routing.py", line 427, in handle
await self.app(scope, receive, send)
File "/projects/__pypackages__/3.10/lib/starlette/routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "/projects/__pypackages__/3.10/lib/starlette/routing.py", line 275, in handle
await self.app(scope, receive, send)
File "/projects/__pypackages__/3.10/lib/starlette/routing.py", line 65, in app
response = await func(request)
File "/projects/./app/endpoints.py", line 34, in contacts_post
contact, _ = await Contact.objects.get_or_create(
File "/projects/__pypackages__/3.10/lib/orm/models.py", line 449, in get_or_create
instance = await self.create(**kwargs)
File "/projects/__pypackages__/3.10/lib/orm/models.py", line 402, in create
kwargs = validator.validate(kwargs)
File "/projects/__pypackages__/3.10/lib/typesystem/schemas.py", line 71, in validate
raise ValidationError(messages=error_messages)
typesystem.base.ValidationError: {'company': 'This field is required.'}
Activity
dlo commentedon Aug 7, 2022
Looks like this has been fixed with ea14b68, but it's not been released yet.