diff options
-rw-r--r-- | account/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/account/views.py b/account/views.py index 306b318..9b580c4 100644 --- a/account/views.py +++ b/account/views.py @@ -8,6 +8,7 @@ from django.contrib.auth import authenticate from django.contrib.auth import login as LOGIN from django.contrib.auth import logout as LOGOUT from django.contrib.auth.decorators import login_required +from datetime import datetime # Create your views here. def index(req): @@ -63,7 +64,8 @@ def create(req): name=name, username=username, email=email, - board_id=Board.allot_board() + board_id=Board.allot_board(), + last_login=datetime.now().strftime("%Y-%m-%d %H:%M") ) account.set_password(password) account.save() |