这是我的模特:
from django.db import models
class Meeting(models.Model):
name = models.CharField(max_length=255)
time = models.DateTimeField()
confirmed = models.BooleanField(default=False)
这是我的表格:
from django import forms
class MeetingForm(forms.Form):
name = forms.CharField(max_length=100)
time = forms.DateTimeField()
user_name = forms.CharField(max_length=100)
user_email = forms.EmailField()
如何创建一个视图,通过链接向用户发送邮件,当用户点击此链接confrimed字段时,会将值更改为true?
链接是我最大的问题。