我想把用户的电子邮件放在我的模型文章中。
from django.db import models
from django import forms
from django.contrib.auth.models import User
class Article(models.Model):
#auteur
email = models.ForeignKey(User.email, unique=True)
name = models.CharField(max_length=200)
#titre
title = models.CharField(max_length=200)
title_en = models.CharField(max_length=200)
subtitle = models.CharField(max_length=200)
subtitle_en = models.CharField(max_length=200)