diff --git a/dashboard/views.py b/dashboard/views.py index 6d6594b..badbf6b 100644 --- a/dashboard/views.py +++ b/dashboard/views.py @@ -1,6 +1,7 @@ import json import http.client import random +from django.utils import timezone import time from urllib import parse from captcha.helpers import captcha_image_url @@ -250,7 +251,7 @@ def register(request): return HttpResponseRedirect('/register/') if username is not None and password is not None and confirm_password is not None and email is not None and flag: - user = User.objects.create_user(username, email, password) + user = User.objects.create_user(username, email, password,last_login = timezone.now() ) user.is_active = True # user.is_staff = True # user.first_name = phone diff --git a/management/templates/management/organization-management-create.html b/management/templates/management/organization-management-create.html index 2c719e5..4af5f42 100644 --- a/management/templates/management/organization-management-create.html +++ b/management/templates/management/organization-management-create.html @@ -61,16 +61,16 @@ -