Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'types.SimpleNamespace' object has no attribute 'pk' #10072

Closed
jacobtylerwalls opened this issue Sep 25, 2023 · 1 comment · Fixed by #10075
Closed

'types.SimpleNamespace' object has no attribute 'pk' #10072

jacobtylerwalls opened this issue Sep 25, 2023 · 1 comment · Fixed by #10075
Assignees
Labels
Type: Bug Something isn't working

Comments

@jacobtylerwalls
Copy link
Member

jacobtylerwalls commented Sep 25, 2023

After #9753, there's an error when uploading a file:

2023-09-25 15:39:22 2023-09-25 14:39:22,631 arches.app.views.tile ERROR    Unable to save. [Tile id: 32efc8cb-6ad7-46cc-aedf-385f59786d98]                      [Exception message: 'types.SimpleNamespace' object has no attribute 'pk']                      [Exception trace: Traceback (most recent call last):
2023-09-25 15:39:22   File "/web_root/arches/arches/app/views/tile.py", line 144, in post
2023-09-25 15:39:22     tile.save(request=request, transaction_id=transaction_id)
2023-09-25 15:39:22   File "/web_root/arches/arches/app/models/tile.py", line 452, in save
2023-09-25 15:39:22     self.validate([], request=request)
2023-09-25 15:39:22   File "/web_root/arches/arches/app/models/tile.py", line 341, in validate
2023-09-25 15:39:22     error = datatype.validate(value, node=node, strict=strict, request=request)
2023-09-25 15:39:22   File "/web_root/arches/arches/app/datatypes/datatypes.py", line 1483, in validate
2023-09-25 15:39:22     file_type_errors = errors + self.validate_file_types(request, str(node.pk))
2023-09-25 15:39:22 AttributeError: 'types.SimpleNamespace' object has no attribute 'pk'
2023-09-25 15:39:22 ]
2023-09-25 15:39:22 Internal Server Error: /arches/tile

Version

7.4 dev (unreleased)

@jacobtylerwalls jacobtylerwalls added the Type: Bug Something isn't working label Sep 25, 2023
@chiatt chiatt added this to pipeline Sep 25, 2023
@aarongundel aarongundel self-assigned this Sep 25, 2023
@aarongundel aarongundel moved this to 🏗 In Progress in pipeline Sep 25, 2023
@jacobtylerwalls jacobtylerwalls linked a pull request Sep 26, 2023 that will close this issue
@jacobtylerwalls
Copy link
Member Author

Closed in #10075

@github-project-automation github-project-automation bot moved this from 🏗 In Progress to ✅ Done in pipeline Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants