Fixed a UnboundLocalError, there's a unexpected path. Also removed a failed migration (which may covered by django's orm change).