Changes between Initial Version and Version 1 of Ticket #31896


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31896 – Description

    initial v1  
    11Currently, 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.
    22
    3 Anyway, there could be many reasons why a developer would want to use such an util in features. And I believe it should be safe to use UnsafeLoader for fixtures since this is certainly a data that developers create themselves.
     3Anyway, 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.
    44
    55Opened a PR: https://github.com/django/django/pull/13320
Back to Top