#23140: page_range TypeError: sequence index must be integer, not 'slice'
--------------------------------+----------------------
     Reporter:  CollinAnderson  |      Owner:  nobody
         Type:  Uncategorized   |     Status:  new
    Component:  Uncategorized   |    Version:  1.7-rc-2
     Severity:  Normal          |   Keywords:
 Triage Stage:  Unreviewed      |  Has patch:  0
Easy pickings:  0               |      UI/UX:  0
--------------------------------+----------------------
 For years I've running `page.paginator.page_range[:]` to make a copy of
 page_range. After #23088, I'm getting the error above. It might just be
 I'm the only one who's doing this, and should instead just call
 `list(page.paginator.page_range)`, though it seems to me we list this in
 backwards incompatibilities and/or defer until 1.8.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23140>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.f57105c4c52b7b25fce090c46b542dd3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to