File tree 4 files changed +5
-4
lines changed
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,3 @@ class Member(models.Model):
18
18
project_memberships = models .CharField (max_length = 100 )
19
19
started_nsi_date = models .DateField ()
20
20
desertion_nsi_date = models .DateField (null = True )
21
-
Original file line number Diff line number Diff line change 2
2
from lettuce import step
3
3
from apps .teams .models import Team
4
4
5
+
5
6
@step (u'exist a team:' )
6
7
def given_exist_a_team (step ):
7
8
Team (** step .hashes [0 ]).save ()
Original file line number Diff line number Diff line change 1
1
from django .db import models
2
2
3
+
3
4
class Team (models .Model ):
4
5
name = models .CharField (max_length = 100 )
5
6
description = models .TextField ()
Original file line number Diff line number Diff line change 1
1
from django .shortcuts import render_to_response
2
2
from apps .teams .models import Team
3
3
4
+
4
5
def show_all (request ):
5
6
teams = Team .objects .all ()
6
7
return render_to_response ('show_all.html' ,
7
- { 'teams' : teams ,
8
- 'team_count' : len (teams ) })
9
-
8
+ {'teams' : teams ,
9
+ 'team_count' : len (teams )})
You can’t perform that action at this time.
0 commit comments