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

Resource.save() throws TypeError if there are tiles #10713

Open
jacobtylerwalls opened this issue Mar 25, 2024 · 0 comments
Open

Resource.save() throws TypeError if there are tiles #10713

jacobtylerwalls opened this issue Mar 25, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@jacobtylerwalls
Copy link
Member

Version: dev/7.6, may affect earlier

>>> from arches.app.models.resource import Resource
>>> r = Resource.objects.all()[40]
>>> r.load_tiles()
>>> r.save()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/web_root/arches/arches/app/models/resource.py", line 233, in save
    tile.save(request=request, index=False, transaction_id=transaction_id, context=context)
  File "/web_root/arches/arches/app/models/models.py", line 1172, in save
    super(TileModel, self).save(*args, **kwargs)  # Call the "real" save() method.
TypeError: Model.save() got an unexpected keyword argument 'request'
@chiatt chiatt added this to pipeline Mar 25, 2024
@chiatt chiatt moved this to 📋 Backlog in pipeline Mar 26, 2024
@chiatt chiatt added the Type: Bug Something isn't working label Mar 26, 2024
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
Status: 📋 Backlog
Development

No branches or pull requests

2 participants