Skip to content

Commit

Permalink
Revert "Cleaned up the ChallengeSettings and docstrings."
Browse files Browse the repository at this point in the history
This reverts commit 06bf78f.
  • Loading branch information
yongwen committed Jan 23, 2013
1 parent 829916d commit cd09482
Show file tree
Hide file tree
Showing 28 changed files with 74 additions and 590 deletions.
8 changes: 4 additions & 4 deletions makahiki/apps/managers/challenge_mgr/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ class ChallengeSettingAdmin(admin.ModelAdmin):
"""ChallengeSetting administrator interface definition."""

fieldsets = (
("Challenge",
(None,
{"fields":
(("name", "location"),
("logo", "domain"),
("team_label", "theme"),
(("site_name", "site_logo"),
("competition_name", "site_domain"),
("competition_team_label", "theme"),
)}),
("Authentication",
{"fields":
Expand Down
4 changes: 2 additions & 2 deletions makahiki/apps/managers/challenge_mgr/challenge_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def info():
"""Returns the challenge name and site."""
init()
challenge = get_challenge()
return "Challenge name : %s @ %s" % (challenge.name,
challenge.location)
return "Challenge name : %s @ %s" % (challenge.competition_name,
challenge.site_name)


def get_challenge():
Expand Down
2 changes: 1 addition & 1 deletion makahiki/apps/managers/challenge_mgr/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def competition(request):
"CHALLENGE": challenge,
"SCORE_SETTINGS": score_mgr.score_setting(),
"CSS_THEME": css_theme,
"TEAM_LABEL": challenge.team_label,
"TEAM_LABEL": challenge.competition_team_label,
"MAKAHIKI_FACEBOOK_APP_ID":
settings.MAKAHIKI_FACEBOOK_APP_ID if settings.MAKAHIKI_USE_FACEBOOK else '',
"MAKAHIKI_USE_LESS": settings.MAKAHIKI_USE_LESS,
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit cd09482

Please sign in to comment.