Squash a warning, earn a badge!

If anyone is working on code like XBlocks that may need to support both older and newer versions of Open edX, you’ll discover that from common.djangoapps.student.models import ... is not backwards-compatible with previous named releases (e.g. Juniper). Here’s how I fixed the import paths problem in the problem-builder XBlock in a backwards compatible way, while silencing the warning:

3 Likes