      def __str__(self):
          return self.username
  
  
  @python_2_unicode_compatible
  class UserProfile(models.Model):
      user = models.OneToOneField(User, models.CASCADE)
      city = models.CharField(max_length=100)
      state = models.CharField(max_length=2)
  
 
</s> remove @python_2_unicode_compatible
 </s> add  </s> remove @python_2_unicode_compatible
 </s> add  </s> remove @python_2_unicode_compatible
 </s> add  </s> remove @python_2_unicode_compatible
 </s> add  </s> remove @python_2_unicode_compatible
 </s> add 
      def __str__(self):
          return self.username
  
  

  class UserProfile(models.Model):
      user = models.OneToOneField(User, models.CASCADE)
      city = models.CharField(max_length=100)
      state = models.CharField(max_length=2)
  
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed python_2_unicode_compatible decorator usage 
tests/select_related_onetoone/models.py