This commit is contained in:
xieshen 2019-04-11 16:00:03 +08:00
parent 4a33c7c5dc
commit 3f3212183a
2 changed files with 1 additions and 2 deletions

View File

@ -85,7 +85,6 @@ def user_register(request):
user.save()
messages.success(request, u'注册成功')
return HttpResponseRedirect('/account/login')
return render(request, 'account/register.html')

View File

@ -184,7 +184,7 @@ class Cart(models.Model):
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
user = models.OneToOneField(User)
#在线申请
class Order(models.Model):
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
user = models.ForeignKey(User)