diff --git a/aimmo/templatetags/players_utils.py b/aimmo/templatetags/players_utils.py index 0232e9dd7..d87770dc1 100644 --- a/aimmo/templatetags/players_utils.py +++ b/aimmo/templatetags/players_utils.py @@ -1,15 +1,16 @@ from django import template -from aimmo import app_settings - register = template.Library() @register.inclusion_tag('players/dropdown.html', takes_context=True) def game_dropdown_list(context, base_url): + return get_user_playable_games(context, base_url) + + +def get_user_playable_games(context, base_url): user = context.request.user return { 'base_url': base_url, - 'open_play_games': user.playable_games.all() if user.is_authenticated() else None, - 'level_numbers': xrange(1, app_settings.MAX_LEVEL+1), + 'open_play_games': user.playable_games.all() if user.is_authenticated() else None } diff --git a/version.txt b/version.txt index 2411653a5..09a3acfa1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.5.2 \ No newline at end of file +0.6.0 \ No newline at end of file