Changes between Initial Version and Version 1 of Ticket #29906, comment 3


Ignore:
Timestamp:
Oct 31, 2018, 7:13:05 PM (6 years ago)
Author:
Daniel Hahler

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29906, comment 3

    initial v1  
    1 Just for the record: it is not via ``__getattr__``, but because ``__class__`` itself is special property already: https://github.com/django/django/blob/3d4d0a25b299a97314582156a0d63d939662d310/django/utils/functional.py#L305
     1Just for the record: it is not via `__getattr__`, but because `__class__` itself is special property already: https://github.com/django/django/blob/3d4d0a25b299a97314582156a0d63d939662d310/django/utils/functional.py#L305
    22
    33I still think that ``isinstance()`` should not throw, but created a fix/workaround for pytest nonetheless.
Back to Top