def get_or_create_from_instance(self, instance):
        try:
            instance_old = self.model.objects.get(screen_name=instance.screen_name)
            if instance_old.id < instance.id:
                instance._substitute(instance_old)
                instance.save()
            else:
                # perhaps we already have old User with the same screen_name, but different id
                try:
                    self.fetch(instance_old.pk)
                except TwitterError, e:
                    if e.code == 34:
                        instance._substitute(instance_old)
                        instance_old.delete()
                        instance.save()
                    else:
                        raise
            return instance
        except self.model.DoesNotExist:
            return super(UserManager, self).get_or_create_from_instance(instance)
dataset/ETHPy150Open ramusus/django-twitter-api/twitter_api/models.py/UserManager.get_or_create_from_instance/operator `==` -> `<`