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
Hello, I'm trying to implement django-filer 3.1.1 to manage video files with Django REST Framework. I followed the Usage and Extending Django Filer explanations. I can upload videos, but when I want to assign them to a model that uses them in the admin console, I have the Select a valid choice. That choice is not one of the available choices. error and I can't figure out why it happens.
I can imagine this error happening if the field you're filling requires an image - not video. The error message is cryptic, but I assume that the mime type is not of a valid choice...
Actually this issue happens as soon I set default_model_class = Video. If I set it as File the issue disappears. As a workaround, I`m using the FilerFileField with FILER_MIME_TYPE_WHITELIST to allow videos only. That's ok for our particular needs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello, I'm trying to implement django-filer 3.1.1 to manage video files with Django REST Framework. I followed the Usage and Extending Django Filer explanations. I can upload videos, but when I want to assign them to a model that uses them in the admin console, I have the
Select a valid choice. That choice is not one of the available choices.
error and I can't figure out why it happens.settings.py:
models.py
urls.py
admin.py
requirements.txt may be useful:
Any comment to resolve this issue is welcome.
The text was updated successfully, but these errors were encountered: