f</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">before_uuid</span><span class="p">,</span> <span class="n">Uuid</span><span class="p">):</span>
            <span class="n">before_uuid</span> <span class="o">=</span> <span class="n">before_uuid</span><span class="o">.</span><span class="n">uuid</span>

        <span class="n">result</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">connection</spa