Django确认电子邮件。将值从false更改为true

时间:2012-09-18 19:33:04

标签: django django-views django-email

这是我的模特:

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?

链接是我最大的问题。

0 个答案:

没有答案