Project

General

Profile

0001-misc-make-get_visible_status-work-out-of-request-res.patch

Frédéric Péters, 02 February 2016 12:43 PM

Download (835 Bytes)

View differences:

Subject: [PATCH 1/2] misc: make get_visible_status work out of
 request/response cycle (#9835)

 wcs/formdata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/formdata.py
311 311
    def get_visible_status(self, user=None):
312 312
        if not self.evolution:
313 313
            return self.get_status()
314
        if not user:
314
        if not user and get_request():
315 315
            user = get_request().user
316 316
        for evo in reversed(self.evolution):
317 317
            if not evo.status:
318
-