@@ -18,7 +18,7 @@ def lr_intr(l, r):
18
18
19
19
20
20
class DriverAdmin (RelatedCompetitionAdmin , CommonTabbedModelAdmin ):
21
- list_display = ('__unicode__ ' , 'country' , 'print_competitions' )
21
+ list_display = ('__str__ ' , 'country' , 'print_competitions' )
22
22
list_filter = ('competitions__name' ,)
23
23
tab_overview = (
24
24
(None , {
@@ -36,7 +36,7 @@ class DriverAdmin(RelatedCompetitionAdmin, CommonTabbedModelAdmin):
36
36
37
37
class TeamAdmin (RelatedCompetitionAdmin , CommonTabbedModelAdmin ):
38
38
model = Team
39
- list_display = ('__unicode__ ' , 'country' , 'print_competitions' )
39
+ list_display = ('__str__ ' , 'country' , 'print_competitions' )
40
40
list_filter = ('competitions' , 'seats__seasons' )
41
41
tab_overview = (
42
42
(None , {
@@ -144,7 +144,7 @@ class SeasonAdmin(CommonTabbedModelAdmin):
144
144
('Races' , tab_races ),
145
145
]
146
146
readonly_fields = ('print_copy_season' ,)
147
- list_display = ('__unicode__ ' , 'print_copy_season' )
147
+ list_display = ('__str__ ' , 'print_copy_season' )
148
148
list_filter = ('competition' ,)
149
149
150
150
def get_season_copy (self , copy_id ):
@@ -179,7 +179,7 @@ def print_copy_season(self, obj):
179
179
180
180
181
181
class RaceAdmin (CommonTabbedModelAdmin ):
182
- list_display = ('__unicode__ ' , 'season' , 'print_pole' , 'print_winner' , 'print_fastest' ,)
182
+ list_display = ('__str__ ' , 'season' , 'print_pole' , 'print_winner' , 'print_fastest' ,)
183
183
list_filter = ('season' , 'season__competition' ,)
184
184
185
185
tab_overview = (
@@ -365,7 +365,7 @@ def clean_position(position):
365
365
366
366
367
367
class ContenderAdmin (CommonTabbedModelAdmin ):
368
- list_display = ('__unicode__ ' , 'competition' , 'teams_verbose' , 'print_current' )
368
+ list_display = ('__str__ ' , 'competition' , 'teams_verbose' , 'print_current' )
369
369
list_filter = ('competition' , 'seats__seasons' ,)
370
370
tab_overview = (
371
371
(None , {
0 commit comments