Ticket #14823: serializers__init__nowarning.diff
File serializers__init__nowarning.diff, 797 bytes (added by , 14 years ago) |
---|
-
django/core/serializers/__init__.py
48 48 directly into the global register of serializers. Adding serializers 49 49 directly is not a thread-safe operation. 50 50 """ 51 if not _serializers: 52 _load_serializers() 51 53 module = importlib.import_module(serializer_module) 52 54 if serializers is None: 53 55 _serializers[format] = module … … 56 58 57 59 def unregister_serializer(format): 58 60 "Unregister a given serializer. This is not a thread-safe operation." 61 if not _serializers: 62 _load_serializers() 59 63 del _serializers[format] 60 64 61 65 def get_serializer(format):