Update reg/views.py