diff --git a/.gitignore b/.gitignore index c627558..99c2aef 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ music/__pycache__/ music/migrations/__pycache__/ api/__pycache__/ music/tests/__pycache__/ -music/views/__pycache__/ \ No newline at end of file +music/views/__pycache__/ +db.sqlite3 \ No newline at end of file diff --git a/db.sqlite3 b/db.sqlite3 index 6745bff..0877a7f 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/timelaps/models.py b/timelaps/models.py index 0c1766f..5f1b96f 100644 --- a/timelaps/models.py +++ b/timelaps/models.py @@ -25,7 +25,7 @@ class Driver(models.Model): ordering = ['order'] def __str__(self): - return '%d: %s' % (self.first_name, self.last_name) + return self.kart.__str__() + " : " + self.first_name + " " + self.last_name class Params(models.Model): diff --git a/timelaps/urls.py b/timelaps/urls.py index 9dec02f..c1ab240 100644 --- a/timelaps/urls.py +++ b/timelaps/urls.py @@ -12,6 +12,7 @@ urlpatterns = [ # path('rules/', ListCreateRulesView.as_view(), name="rules-list-create"), path('params//', ParamsDetailView.as_view(), name="rules-detail"), # path('relays/', ListCreateRelaysView.as_view(), name="relays-list-create"), + # path('relaysbykart//', RelaysDetailView.as_view(), name="relays-detail"), # path('relays//', RelaysDetailView.as_view(), name="relays-detail"), # path('races/', ListCreateRacesView.as_view(), name="races-list-create"), # path('races//', RacesDetailView.as_view(), name="races-detail"),