Open AoNoOokami opened 8 months ago
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.
The same issue happened with me, I have followed the django-filer doc. to add Video Model
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.