Replace Media.is_video
by check on Media.datatype
#262
Labels
bug
Issues with bugs that need to be fixed
Media.is_video
by check on Media.datatype
#262
The
is_video
method is re-checking something that has already been established: thedatatype
. The field should be used whenever we need to check the type of file. In the templates, the code needs to be adapted from{% if media.is_video %}
to{% if media.datatype == 'video' %}
.The text was updated successfully, but these errors were encountered: