fixed bug where user was unable to delete an existing portfolio due to unmanaged models as db views and supposed foreign key relationships