from django.db import models

# Create your models here.
class Player(models.Model):
    name = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Game(models.Model):
    name = models.CharField(max_length=30)
    player = models.ForeignKey(Player, related_name="games")
    score = models.IntegerField(default=0, null=True, blank=True)

    def __unicode__(self):
        return self.name
9f68662d35a27d4043077b955fb1484d2e7d2696
<mask token>


class Game(models.Model):
    name = models.CharField(max_length=30)
    player = models.ForeignKey(Player, related_name='games')
    score = models.IntegerField(default=0, null=True, blank=True)

    def __unicode__(self):
        return self.name

<mask token>


class Player(models.Model):
    <mask token>

    def __unicode__(self):
        return self.name


class Game(models.Model):
    name = models.CharField(max_length=30)
    player = models.ForeignKey(Player, related_name='games')
    score = models.IntegerField(default=0, null=True, blank=True)

    def __unicode__(self):
        return self.name

<mask token>


class Player(models.Model):
    name = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Game(models.Model):
    name = models.CharField(max_length=30)
    player = models.ForeignKey(Player, related_name='games')
    score = models.IntegerField(default=0, null=True, blank=True)

    def __unicode__(self):
        return self.name

from django.db import models


class Player(models.Model):
    name = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Game(models.Model):
    name = models.CharField(max_length=30)
    player = models.ForeignKey(Player, related_name='games')
    score = models.IntegerField(default=0, null=True, blank=True)

    def __unicode__(self):
        return self.name

from django.db import models

# Create your models here.
class Player(models.Model):
    name = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Game(models.Model):
    name = models.CharField(max_length=30)
    player = models.ForeignKey(Player, related_name="games")
    score = models.IntegerField(default=0, null=True, blank=True)

    def __unicode__(self):
        return self.name