Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy McKay committed Sep 8, 2011
1 parent d639f40 commit 7059e49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/addons/models.py
Expand Up @@ -988,8 +988,7 @@ def premium(self):
if its not there, try and get it. Will return None if there's nothing
there.
"""
current = hasattr(self, '_premium')
if not current:
if not hasattr(self, '_premium'):
try:
self._premium = self.addonpremium
except AddonPremium.DoesNotExist:
Expand Down

0 comments on commit 7059e49

Please sign in to comment.