ValueError: Cannot assign id to field when saving form code example Example: ValueError: Cannot assign id to field when saving form wform.user = models.ForeignKey('User')