Update views.py

I had some problems with virtual machines having an id > 10