1. ken cochrane
  2. django-feature-request

Source

django-feature-request / feature_request / forms.py

from django import forms

from feature_request.models import FeatureRequest

class FeatureRequestForm(forms.ModelForm):

    class Meta:
        model = FeatureRequest
        exclude = ('member','create_date','last_update')
        
    def save(self, member):
        fit_log= super(FeatureRequestForm, self).save(commit=False)
        fit_log.member = member       
        fit_log.save() 
        return fit_log