Commits

ghorvath committed 8a01e3f

BUG: filter missing META Keys.

Comments (0)

Files changed (1)

freieit/views/home.py

     try:
       self.seed = self.request.COOKIES['seed']
     except KeyError:
-      self.seed = "-".join(map(filter(None,
-                                      self.request.META.get,
-                                      ['HTTP_USER_AGENT',     
-                                       'REMOTE_ADDR',
-                                       'REMOTE_HOST'])))
+      self.seed = "-".join(filter(None,map(
+        self.request.META.get,
+        ['HTTP_USER_AGENT',     
+         'REMOTE_ADDR',
+         'REMOTE_HOST'])))
     kwargs['seed'] = self.seed      
     return self.form_class(data, **kwargs)