      Returns the next page number.
  
      .. versionchanged:: 1.5
  
      Raises :exc:`InvalidPage` if next page doesn't exist.
  
  .. method:: Page.previous_page_number()
  
      Returns the previous page number.
  
 
</s> remove     Raises :exc:`InvalidPage` if previous page doesn't exist.
 </s> add         Raises :exc:`InvalidPage` if previous page doesn't exist. </s> remove       Previously, this returned a string.
 </s> add          Previously, this returned a string. </s> remove         ``success_url`` may contain dictionary string formatting, which
        will be interpolated against the object's field attributes. For
        example, you could use ``success_url="/parent/%(parent_id)s/"`` to
        redirect to a URL composed out of the ``parent_id`` field on a model.
 </s> add             ``success_url`` may contain dictionary string formatting, which
            will be interpolated against the object's field attributes. For
            example, you could use ``success_url="/parent/%(parent_id)s/"`` to
            redirect to a URL composed out of the ``parent_id`` field on a model. </s> remove     The current value of the field will be displayed as a clickable link above the
    input widget.
 </s> add         The current value of the field will be displayed as a clickable link above the
        input widget. </s> remove In previous versions of Django, the ``pk`` attribute had to be present
on the serialized data or a ``DeserializationError`` would be raised.
 </s> add     In previous versions of Django, the ``pk`` attribute had to be present
    on the serialized data or a ``DeserializationError`` would be raised.
        Raises :exc:`InvalidPage` if next page doesn't exist.
      Returns the next page number.
  
      .. versionchanged:: 1.5
  
        Raises :exc:`InvalidPage` if next page doesn't exist.
  
  .. method:: Page.previous_page_number()
  
      Returns the previous page number.
  
keep keep keep keep replace keep keep keep keep keep
 Adapted uses of versionchanged/versionadded to the new form.

Refs #20104. 
docs/topics/pagination.txt