def get_form_class(self):
# @@@ django: this is a workaround to not having a dedicated method
# to initialize self with a request in a known good state (of course
# this only works with a FormView)
self.primary_email_address = EmailAddress.objects.get_primary(self.request.user)
return super(SettingsView, self).get_form_class()
评论列表
文章目录