Changes between Initial Version and Version 1 of Ticket #31896
- Timestamp:
- Aug 17, 2020, 2:10:53 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31896 – Description
initial v1 1 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. 2 2 3 Anyway, there could be many reasons why a developer would want to use such an util in f eatures. And I believe it should be safe to use UnsafeLoader for fixtures since this is certainly a data that developers create themselves.3 Anyway, 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. 4 4 5 5 Opened a PR: https://github.com/django/django/pull/13320