Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2018-04-06 Thread Django
#27018: Admin views in admindocs crash with AttributeError
-+-
 Reporter:  Markus Holtermann|Owner:  Helen
 |  Sherwood-Taylor
 Type:  Bug  |   Status:  closed
Component:  contrib.admindocs|  Version:  1.10
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Paul Donohue):

 This seems to have introduced a bug:
 https://code.djangoproject.com/ticket/29296

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.a21bdc6b55bbdd8b3f1f74e25d3f96dc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-20 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  closed
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:  fixed
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by Tim Graham ):

 In [changeset:"ae0f55eb491255217d6df31296ec8102007224a6" ae0f55e]:
 {{{
 #!CommitTicketReference repository=""
 revision="ae0f55eb491255217d6df31296ec8102007224a6"
 [1.10.x] Fixed #27018 -- Fixed admindocs crash with a view in a class.

 Generated correct admindocs URLs on Python 3. URLs generate 404s on
 Python 2, as in older versions of Django.

 Backport of bc1e2d8e8edde6cc7d2657c68242a13ee65a15b8 from master
 }}}

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.57af760cd7c36a27b5918e0749d47af2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-20 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  closed
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:  fixed
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"bc1e2d8e8edde6cc7d2657c68242a13ee65a15b8" bc1e2d8e]:
 {{{
 #!CommitTicketReference repository=""
 revision="bc1e2d8e8edde6cc7d2657c68242a13ee65a15b8"
 Fixed #27018 -- Fixed admindocs crash with a view in a class.

 Generated correct admindocs URLs on Python 3. URLs generate 404s on
 Python 2, as in older versions of Django.
 }}}

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.88621af58923a7369a683c37efcb76bb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-20 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by helenst):

 * needs_better_patch:  1 => 0


Comment:

 Hi Tim, thank you for the review! I have made improvements as suggested.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.ff8846b7d8cf809bf5269dfe0bdd896c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-19 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  0
---+
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * has_patch:  0 => 1


Comment:

 Left some comments for improvement.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.dfeae42127b54905d92957cceb77349d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-19 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by helenst):

 PR: https://github.com/django/django/pull/7127

 Tests pass on 2.7 and 3.5. I have also added a note in the documentation
 about this.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.97a40aa3b55dc1a90cb0b2bbb88a1248%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-18 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by MarkusH):

 Awesome Helen! A Python 3 solution would be fine and more than we have now
 :)

 For the tests I'd either go with

 {{{#!python
 if six.PY2:
 validate_stuff_py2()
 else:
 validate_stuff_py3()
 }}}

 or

 {{{#!python
 @unittest.skipIf(six.PY2, "Only supported for Python 3")
 def test_foo_py3(self):
 validate_stuff_py3()

 @unittest.skipIf(six.PY3, "Only supported for Python 2")
 def test_foo_py2(self):
 validate_stuff_py2()
 }}}

 The first might be easier to maintain (for the time where we still have
 general Python 2 support in Django).

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.4b746d9f3a85423a5ae9d7031747fbc9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-18 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by timgraham):

 I don't mind if the fix is Python 3 only. Python 2 raising a 404 as
 happened in older versions of Django would be okay.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.7d2a368c8630c4938fbff7beb08de477%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-18 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by helenst):

 I've fixed this but it's a Python 3 only fix due to the use of
 `__qualname__` to find out which class the view comes from and therefore
 generate the correct URL.

 There are ways to emulate `__qualname__` in py2, but kind of hacky. I see
 in migrations/serializers.py qualname is also used and a message generated
 for py2 users. Is a Python 3 only solution acceptable here? In Python 2 it
 will continue to just not work (and could be tidied up to raise a 404
 rather than an error).

 I am not sure what is the best thing here, so some input would be good!
 All is pushed to the branch linked above.

 There is also the issue of ensuring the tests pass (i.e. I have added test
 cases but they only pass for python 3).

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.714b8cfc8885fe6c7c91556fc4554df4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-12 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by helenst):

 I'm working on branch https://github.com/helenst/django/tree/ticket_27018

 Have written tests for the detail and index views.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.47438acaf20c19074d2fbddcf5d8dd87%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-12 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by helenst):

 The problem is that the callbacks for these views are methods on classes.

 For those two links that do work:
 `/admin/r///` view function is
 `django.contrib.contenttypes.views.shortcut`
 `/admin` view function is
 `django.views.generic.base.RedirectView`
 and both of those exist and can be resolved in `ViewDetailView` so they're
 fine.

 However for `/admin/` the view function is shown as
 `django.contrib.admin.sites.index` which does not exist. It's
 `django.contrib.admin.sites.AdminSite.index` (or
 `django.contrib.admin.sites.site.index` since the sites module exposes an
 instance of AdminSite). This means the view function is insufficiently
 specified on the URL for the view detail.

 This is true for all the others that are crashing.

 Next step will be to write some failing tests.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.a36cd952698237f1fd4950eea724881d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError

2016-08-06 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  helenst
 Type:  Bug|   Status:  assigned
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by helenst):

 * owner:  nobody => helenst
 * status:  new => assigned


Comment:

 I'll have a look at this.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.4c7c1efe9d07fc899af4475b743dcf31%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27018: Admin views in admindocs crash with AttributeError (was: Admin view in admindocs are not accessible)

2016-08-04 Thread Django
#27018: Admin views in admindocs crash with AttributeError
---+
 Reporter:  MarkusH|Owner:  nobody
 Type:  Bug|   Status:  new
Component:  contrib.admindocs  |  Version:  1.10
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by timgraham):

 * type:  Uncategorized => Bug
 * stage:  Unreviewed => Accepted


Comment:

 Bisected the change in 1.10 to 31a789f646d0d9af3e8464f2f9a06aa018df5f90.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.ab2c8fe241245a2f8f6f1cf41921a8b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.