Update models.py

Support alternative redirect types (such as mailto)