by Siecje · 7y ago · 0 comments
/home/cody/.virtualenvs/37/lib/python3.7/site-packages/django/db/models/sql/compiler.py:1030: RemovedInDjango30Warning: Remove the context parameter from MultiSelectField.from_db_value(). Support for it will be removed in Django 3.0.
RemovedInDjango30Warning,
/home/cody/.virtualenvs/37/lib/python3.7/site-packages/django/db/models/sql/compiler.py:1030: RemovedInDjango30Warning: Remove the context parameter from MultiSelectField.from_db_value(). Support for it will be removed in Django 3.0.
RemovedInDjango30Warning, python -Wa -Wignore::DeprecationWarning
The above, however, will ignore all DeprecationWarning warnings. You can further filter this ignore if you know the module where the warning originates: https://docs.python.org/3/library/warnings.html#describing-w...Alternatively, if you find a package import is causing this warning, you can wrap the import in a context manager that ignores the warning:
import warnings
from django.utils.deprecation import RemovedInDjango30Warning
with warnings.catch_warnings():
warnings.simplefilter("ignore", RemovedInDjango30Warning)
import MODULE