  
      >>> bar = Bar.objects.get(pk=1)
      >>> Foo.objects.get(bar=bar)
  
  use the default_related_name ``bars``::
  
      >>> Foo.objects.get(bars=bar)
  
  .. _search-lookup-replacement:
  
 
</s> remove in model ``Bar``, instead of using the model name ``bar`` as the lookup::
 </s> add in model ``Bar``, instead of using the model name ``bar`` as the lookup:

.. code-block:: pycon </s> remove         >>> wkt = 'GEOGCS["WGS 84", DATUM["WGS_1984, ... AUTHORITY["EPSG","4326"]]')
 </s> add         >>> wkt = 'GEOGCS["WGS 84", DATUM["WGS_1984, ... AUTHORITY["EPSG","4326"]]' </s> remove     >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', <file data>)}
 </s> add     >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', b"file data")} </s> remove     >>> mapping = {'name' : 'str', # The 'name' model field maps to the 'str' layer field.
                   'poly' : 'POLYGON', # For geometry fields use OGC name.
                   } # The mapping is a dictionary
 </s> add     >>> mapping = {
    ...     'name': 'str', # The 'name' model field maps to the 'str' layer field.
    ...     'poly': 'POLYGON', # For geometry fields use OGC name.
    ... } # The mapping is a dictionary </s> remove     >>>     p2.restaurant
    >>> except ObjectDoesNotExist:
    >>>     print("There is no restaurant here.")
 </s> add     ...     p2.restaurant
    ... except ObjectDoesNotExist:
    ...     print("There is no restaurant here.")
use the default_related_name ``bars``:

.. code-block:: pycon
  
      >>> bar = Bar.objects.get(pk=1)
      >>> Foo.objects.get(bar=bar)
  
use the default_related_name ``bars``:

.. code-block:: pycon
  
      >>> Foo.objects.get(bars=bar)
  
  .. _search-lookup-replacement:
  
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/releases/1.10.txt