Skip to content

Commit b000fdf

Browse files
committed
Fix py3 compatibility.
1 parent 516cfab commit b000fdf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

driver27/admin/admin.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def lr_intr(l, r):
1818

1919

2020
class DriverAdmin(RelatedCompetitionAdmin, CommonTabbedModelAdmin):
21-
list_display = ('__unicode__', 'country', 'print_competitions')
21+
list_display = ('__str__', 'country', 'print_competitions')
2222
list_filter = ('competitions__name',)
2323
tab_overview = (
2424
(None, {
@@ -36,7 +36,7 @@ class DriverAdmin(RelatedCompetitionAdmin, CommonTabbedModelAdmin):
3636

3737
class TeamAdmin(RelatedCompetitionAdmin, CommonTabbedModelAdmin):
3838
model = Team
39-
list_display = ('__unicode__', 'country', 'print_competitions')
39+
list_display = ('__str__', 'country', 'print_competitions')
4040
list_filter = ('competitions', 'seats__seasons')
4141
tab_overview = (
4242
(None, {
@@ -144,7 +144,7 @@ class SeasonAdmin(CommonTabbedModelAdmin):
144144
('Races', tab_races),
145145
]
146146
readonly_fields = ('print_copy_season',)
147-
list_display = ('__unicode__', 'print_copy_season')
147+
list_display = ('__str__', 'print_copy_season')
148148
list_filter = ('competition',)
149149

150150
def get_season_copy(self, copy_id):
@@ -179,7 +179,7 @@ def print_copy_season(self, obj):
179179

180180

181181
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',)
183183
list_filter = ('season', 'season__competition',)
184184

185185
tab_overview = (
@@ -365,7 +365,7 @@ def clean_position(position):
365365

366366

367367
class ContenderAdmin(CommonTabbedModelAdmin):
368-
list_display = ('__unicode__', 'competition', 'teams_verbose', 'print_current')
368+
list_display = ('__str__', 'competition', 'teams_verbose', 'print_current')
369369
list_filter = ('competition', 'seats__seasons',)
370370
tab_overview = (
371371
(None, {

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='django-driver27',
12-
version='0.19.2',
12+
version='0.19.2.1',
1313
include_package_data=True,
1414
packages=find_packages(),
1515
url='https://github.com/SRJ9/django-driver27.git',

0 commit comments

Comments
 (0)