django_baseline/views.py
def get_initial(self):
        """
        Supply user object as initial data for the specified user_field(s).
        """

        data = super(UserViewMixin, self).get_initial()
        for k in self.user_field:
            data[k] = self.request.user

        return data
def get_initial(self):
        """
        Supply user object as initial data for the specified user_field(s).
        """

        data = super(UserViewMixin, self).get_initial()
        for k in self.user_field:
            data[k] = self.request.user

        return data
Supply user object as initial data for the specified user_field(s).