Skip to content

Commit

Permalink
fix name problem on edit_team view
Browse files Browse the repository at this point in the history
  • Loading branch information
Timon Tschanz committed May 28, 2014
1 parent 88d79da commit 550fa69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftw/footballchallenge/browser/edit_team.py
Expand Up @@ -168,7 +168,7 @@ def updateWidgets(self):
starters = session.query(Teams_Players).filter_by(team_id=team.id_).filter_by(is_starter=True).all()
substitutes = session.query(Teams_Players).filter_by(team_id=team.id_).filter_by(is_starter=False).all()

self.fields['name'].field.default = team.name
self.widgets['name'].value = team.name
count = {'defender':1, 'midfield':1, 'striker':1}
for starter in starters:
if not starter.player.position=="keeper":
Expand Down

0 comments on commit 550fa69

Please sign in to comment.