  from django.contrib.auth.models import User
  from django.db import models
  from django.utils.encoding import python_2_unicode_compatible
  
  
  # Forward declared intermediate model
  @python_2_unicode_compatible
  class Membership(models.Model):
 
</s> remove @python_2_unicode_compatible
 </s> add  </s> remove from django.utils.encoding import python_2_unicode_compatible
 </s> add  </s> remove from django.utils.encoding import python_2_unicode_compatible
 </s> add  </s> remove from django.utils.encoding import python_2_unicode_compatible
 </s> add  </s> remove from django.utils.encoding import python_2_unicode_compatible
 </s> add 
  from django.contrib.auth.models import User
  from django.db import models

  
  
  # Forward declared intermediate model
  @python_2_unicode_compatible
  class Membership(models.Model):
keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed python_2_unicode_compatible decorator usage 
tests/m2m_through_regress/models.py