Doesn't that need to be `if rel_release.lower() in settings.NIGHTLY_RELEASE_TYPES:`?