django_baseline/views.py
def pre_save(self, instance):
        super(UserViewMixin, self).pre_save(instance)

        """
        Use SaveHookMixin pre_save to set the user.
        """
        if  self.request.user.is_authenticated():
            for field in self.user_field:
                setattr(instance, field, self.request.user)
def pre_save(self, instance):
        super(UserViewMixin, self).pre_save(instance)

        """
        Use SaveHookMixin pre_save to set the user.
        """
        if  self.request.user.is_authenticated():
            for field in self.user_field:
                setattr(instance, field, self.request.user)
Use SaveHookMixin pre_save to set the user.