Commits

Nickolas Grigoriadis  committed 0ac0a19

Implemented Guilhermes suggestion.

  • Participants
  • Parent commits 8a9d64a

Comments (0)

Files changed (1)

File galeria/models.py

         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