from django.db import models
from django.contrib.auth.models import User


class Player(models.Model):
    user = models.OneToOneField(User)


class Avatar(models.Model):
    player = models.ForeignKey(User)
    code = models.TextField()
from django.db import models
from django.contrib.auth.models import User


class Player(models.Model):
    user = models.OneToOneField(User)
    code = models.TextField()


class Avatar(models.Model):
    player = models.ForeignKey(User)
    
Move code into player (if only for now)
Move code into player (if only for now)

  from django.db import models
  from django.contrib.auth.models import User
  
  
  class Player(models.Model):
      user = models.OneToOneField(User)
+     code = models.TextField()
  
  
  class Avatar(models.Model):
      player = models.ForeignKey(User)
-     code = models.TextField()
+     
Move code into player (if only for now)
## Code Before:
from django.db import models
from django.contrib.auth.models import User


class Player(models.Model):
    user = models.OneToOneField(User)


class Avatar(models.Model):
    player = models.ForeignKey(User)
    code = models.TextField()
## Instruction:
Move code into player (if only for now)
## Code After:
from django.db import models
from django.contrib.auth.models import User


class Player(models.Model):
    user = models.OneToOneField(User)
    code = models.TextField()


class Avatar(models.Model):
    player = models.ForeignKey(User)
    