Changing gitignore and __str__ for Driver model
This commit is contained in:
parent
c323e0d196
commit
709d2c8403
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,4 +6,5 @@ music/__pycache__/
|
||||
music/migrations/__pycache__/
|
||||
api/__pycache__/
|
||||
music/tests/__pycache__/
|
||||
music/views/__pycache__/
|
||||
music/views/__pycache__/
|
||||
db.sqlite3
|
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
@ -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):
|
||||
|
@ -12,6 +12,7 @@ urlpatterns = [
|
||||
# path('rules/', ListCreateRulesView.as_view(), name="rules-list-create"),
|
||||
path('params/<int:pk>/', ParamsDetailView.as_view(), name="rules-detail"),
|
||||
# path('relays/', ListCreateRelaysView.as_view(), name="relays-list-create"),
|
||||
# path('relaysbykart/<int:pk>/', RelaysDetailView.as_view(), name="relays-detail"),
|
||||
# path('relays/<int:pk>/', RelaysDetailView.as_view(), name="relays-detail"),
|
||||
# path('races/', ListCreateRacesView.as_view(), name="races-list-create"),
|
||||
# path('races/<int:pk>/', RacesDetailView.as_view(), name="races-detail"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user