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

Uploading images not working #358

Closed
timobrembeck opened this issue Jun 27, 2022 · 0 comments · Fixed by #359
Closed

Uploading images not working #358

timobrembeck opened this issue Jun 27, 2022 · 0 comments · Fixed by #359
Assignees
Labels
bug Something isn't working Prio:High

Comments

@timobrembeck
Copy link
Member

Describe the Bug

When somebody tries to upload an image, a server error occurs.

Steps to Reproduce

  1. Go to public upload
  2. Upload image
  3. See error

Expected Behavior

The image should be uploaded

Actual Behavior

The error appears:

Jun 27 09:08:26 ERROR   django.request - Internal Server Error: /public_upload
Traceback (most recent call last):
  File "/opt/lunes-cms/.venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/lunes-cms/.venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/lunes-cms/.venv/lib/python3.9/site-packages/lunes_cms/cms/views/other_viewset.py", line 36, in public_upload
    image = DocumentImage(
  File "/opt/lunes-cms/.venv/lib/python3.9/site-packages/django/db/models/base.py", line 503, in __init__
    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls.__name__, kwarg))
TypeError: DocumentImage() got an unexpected keyword argument 'name'

Additional Information

This is a remnant of #340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Prio:High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant