def clean(self):
        """ Check user has cookies enabled
        """
        if self.request:
            if not self.request.session.test_cookie_worked():
                raise forms.ValidationError("Cookies must be enabled.")
        return self.cleaned_data
Check user has cookies enabled