Populate added_by field from CreateView
问题 I have extended django-taggit TagBase model to include an added_by field as a ForeignKey to User : class TagBase(models.Model): name = models.CharField(verbose_name=_("Name"), unique=True, max_length=100) slug = models.SlugField(verbose_name=_("Slug"), unique=True, max_length=100) added_by = models.ForeignKey(User, on_delete=models.CASCADE) Everything works great, however I'm having an issue with populating that field from my CreateView. This is what I have tried: class NoteCreateView