This commit is contained in:
parent
4a33c7c5dc
commit
3f3212183a
|
@ -85,7 +85,6 @@ def user_register(request):
|
|||
user.save()
|
||||
messages.success(request, u'注册成功')
|
||||
return HttpResponseRedirect('/account/login')
|
||||
|
||||
return render(request, 'account/register.html')
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue