from django.db import models
from legacy.models import Constituency

class Boundary(models.Model):
    id = models.IntegerField(primary_key=True)
    constituency_id = models.IntegerField()
    boundary = models.TextField()
    zoom = models.IntegerField()
    north = models.FloatField()
    south = models.FloatField()
    east = models.FloatField()
    west = models.FloatField()
    class Meta:
        db_table = u'boundaries_boundary'

from django.db import models
from legacy.models import Constituency

class Boundary(models.Model):
    constituency = models.ForeignKey( Constituency )
    boundary = models.TextField()
    zoom = models.IntegerField()
    north = models.FloatField()
    south = models.FloatField()
    east = models.FloatField()
    west = models.FloatField()
    class Meta:
        db_table = u'boundaries_boundary'

Put the model back the way it was
Put the model back the way it was

  from django.db import models
  from legacy.models import Constituency
  
  class Boundary(models.Model):
+     constituency = models.ForeignKey( Constituency )
-     id = models.IntegerField(primary_key=True)
-     constituency_id = models.IntegerField()
      boundary = models.TextField()
      zoom = models.IntegerField()
      north = models.FloatField()
      south = models.FloatField()
      east = models.FloatField()
      west = models.FloatField()
      class Meta:
          db_table = u'boundaries_boundary'
  
Put the model back the way it was
## Code Before:
from django.db import models
from legacy.models import Constituency

class Boundary(models.Model):
    id = models.IntegerField(primary_key=True)
    constituency_id = models.IntegerField()
    boundary = models.TextField()
    zoom = models.IntegerField()
    north = models.FloatField()
    south = models.FloatField()
    east = models.FloatField()
    west = models.FloatField()
    class Meta:
        db_table = u'boundaries_boundary'

## Instruction:
Put the model back the way it was
## Code After:
from django.db import models
from legacy.models import Constituency

class Boundary(models.Model):
    constituency = models.ForeignKey( Constituency )
    boundary = models.TextField()
    zoom = models.IntegerField()
    north = models.FloatField()
    south = models.FloatField()
    east = models.FloatField()
    west = models.FloatField()
    class Meta:
        db_table = u'boundaries_boundary'
