Skip to content

Commit

Permalink
Convert region to uppercase in LeagueManager.create_or_update_league.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenwardT committed Nov 12, 2015
1 parent f7cf944 commit 8c106e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leagues/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

logger = logging.getLogger(__name__)


class LeagueManager(models.Manager):
def create_or_update_league(self, attrs, region):

region = region.upper()
possibly_extant_league = self.filter(region=region,
queue=attrs['queue'],
name=attrs['name'],
Expand Down

0 comments on commit 8c106e1

Please sign in to comment.