I'm facing a blocking problem: I'm using authomatic 0.1.0 and in adapters.py
there's a property params
which is declared like this:
@property
def params(self):
return dict(self.request.REQUEST)
If I let it like that, I get this blocking error:
Erreur #1 : 'WSGIRequest' object has no attribute 'REQUEST'
Googling for that my first guess is that REQUEST
is deprecated, and so I tried to rewrite it this way:
@property
def params(self):
# (!) Olivier Pons ! REQUEST removed
a = QueryDict('', mutable=True)
a.update(self.request.GET)
a.update(self.request.POST)
return dict(a.iterlists())
But I get this:
Erreur #1 : The returned state "[u'cxxxx']" doesn't match with the stored state!
I dont know what I'm doing wrong, and how to replace REQUEST
"properly".