mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-06 18:10:39 +00:00
player data model import
This commit is contained in:
1 parent
c36379775d
commit
0c177779f5
4 files changed
+50
-2
No files matched your search
+2
-2
@@ -2,7 +2,7 @@ from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class PlayerData(models.Model):
|
||||
player = models.CharField(max_length=100)
|
||||
name = models.CharField(max_length=100)
|
||||
age = models.CharField(max_length=100)
|
||||
games = models.CharField(max_length=100)
|
||||
games_started = models.CharField(max_length=100)
|
||||
@@ -31,5 +31,5 @@ class PlayerData(models.Model):
|
||||
PTS = models.CharField(max_length=100)
|
||||
|
||||
def __str__(self):
|
||||
return self.player
|
||||
return self.name
|
||||
|
||||
Reference in new issue
Block a user