  
  
  @python_2_unicode_compatible
  class Bar(models.Model):
      place = models.OneToOneField(Place, null=True)
      serves_cocktails = models.BooleanField(default=True)
  
  
 
</s> remove         self.r.place = self.p2
        self.r.save()
 </s> add         self.r1.place = self.p2
        self.r1.save() </s> remove         self.p1 = Place(name='Demon Dogs', address='944 W. Fullerton')
        self.p1.save()
        self.p2 = Place(name='Ace Hardware', address='1013 N. Ashland')
        self.p2.save()
        self.r = Restaurant(place=self.p1, serves_hot_dogs=True, serves_pizza=False)
        self.r.save()
 </s> add         self.p1 = Place.objects.create(name='Demon Dogs', address='944 W. Fullerton')
        self.p2 = Place.objects.create(name='Ace Hardware', address='1013 N. Ashland')
        self.r1 = Restaurant.objects.create(place=self.p1, serves_hot_dogs=True, serves_pizza=False)
        self.b1 = Bar.objects.create(place=self.p1, serves_cocktails=False)
    place = models.OneToOneField(Place)
    serves_cocktails = models.BooleanField(default=True)

    def __str__(self):
        return "%s the bar" % self.place.name


class UndergroundBar(models.Model):
  
  
  @python_2_unicode_compatible
  class Bar(models.Model):
    place = models.OneToOneField(Place)
    serves_cocktails = models.BooleanField(default=True)

    def __str__(self):
        return "%s the bar" % self.place.name


class UndergroundBar(models.Model):
      place = models.OneToOneField(Place, null=True)
      serves_cocktails = models.BooleanField(default=True)
  
  
keep keep keep add keep keep keep keep
 Merged one_to_one_regress into the one_to_one test package. 
tests/one_to_one/models.py