Commits

Nickolas Grigoriadis committed 0ac0a19

Implemented Guilhermes suggestion.

Comments (0)

Files changed (1)

         elif getattr(self, '_cover', None):
             return self._cover
         try:
-            _cov = self.pictures.public().order_by('?')[0]
-            self._cover = _cov
+            self._cover = self.pictures.public().order_by('?')[0]
             return self._cover
         except IndexError:
             return None