Changes between Version 1 and Version 2 of Ticket #31896


Ignore:
Timestamp:
Aug 17, 2020, 2:11:42 PM (4 years ago)
Author:
German Prostakov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31896 – Description

    v1 v2  
    1 Currently, Django uses PyYAML's SafeLoader to load fixtures which prevent to use some advance utils like `!!python/object/apply`. For example, to create dates related to the current date for example, and not static dates that you have to update over time so that they aren't too old.
     1Currently, Django uses PyYAML's SafeLoader to load fixtures which prevent to use some advance utils like `!!python/object/apply`. To create dates related to the current date, for example, and not static dates that you have to update over time so that they aren't too old.
    22
    33Anyway, there could be many reasons why a developer would want to use such an util in fixtures. And I believe it should be safe to use UnsafeLoader for fixtures since this is certainly a data that developers create themselves.
Back to Top