summaryrefslogtreecommitdiff
path: root/django/core/serializers/__init__.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-06-16Fixed #30190 -- Added JSONL serializer.Ali Vakilzade
2020-04-07Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.Matthijs Kooijman
Since #26291 forward references in natural keys are properly handled by loaddata, so sorting depenencies in dumpdata doesn't need to break on cycles. This patch allows circular references in natural keys by breaking sort_depenencies() on loops.
2020-01-29Used model's Options.label/label_lower where applicable.Mariusz Felisiak
2018-01-03Simplified an iterator in core.serializers.sort_dependencies().Sergey Fedoseev
Follow up to acc8dd4142ec81def9a73507120c0262ba6b1264.
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2017-02-21Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-05-28Fixed several typos in DjangoAlex Gaynor
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-09-06Fixed Python 3 syntax error introduced in [c72392da]Tim Graham
2013-09-06Cleanup commit after peer review.Roberto Aguilar
2013-09-06Added yaml directly into BUILTIN_SERIALIZERS.Roberto Aguilar
The serializer definitely exists, but the dependent yaml module may not be installed. The register_serializer() function will catch exceptions and will stub in a fake serializer object that will raise the exception when the serializer is used.
2013-07-29Deprecated django.utils.importlibClaude Paroz
This was a shim for pre-Python 2.7 support.
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2012-08-08remove a bunch of unnescesarry iterkeys() callsAlex Gaynor
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2011-04-26Fixed #15889 -- when trying to access to access a serializer that doesn't ↵Alex Gaynor
exist, raise a new SerializerDoesNotExist exception. Thanks to Mathieu Agopian for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27Fixed #14823 -- Corrected bootstrapping problems with register_serializers. ↵Russell Keith-Magee
Thanks to miker985@uw.edu for the report and draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Fixed #14819 -- Corrected typo in serializer docstring. Thanks to stringify ↵Russell Keith-Magee
for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-18Fixed #8193: all dynamic imports in Django are now done correctly. I know ↵Jacob Kaplan-Moss
this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! git-svn-id: http://code.djangoproject.com/svn/django/trunk@10088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #7676 -- Modified serializer registration to be thread safe. Thanks to ↵Russell Keith-Magee
mrts for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed #6110 -- Mark the python format serializer as for internal use only. ↵Malcolm Tredinnick
Thanks, empty. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #3036 -- Fixed some doctest strings that were failing. Thanks to pterk ↵Russell Keith-Magee
for the original patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-12Added a YAML serializer built on PyYAML (http://pyyaml.org/). This ↵Jacob Kaplan-Moss
serializer will only be enabled if PyYAML is installed, so I've not written any unit tests until I figure out how to make them work similarly. Still, the serializer is just a thin layer over the base Python serializer, and seems to Just Work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-01Fixes #2333 -- Added test fixtures framework.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-30Fixed #2968 -- Changed arguments to __import__ to use empty dictionary ↵Adrian Holovaty
instead of empty string, for stricter compliance with Python library reference. Thanks for the patch, Yasushi Masuda git-svn-id: http://code.djangoproject.com/svn/django/trunk@3951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-29Added a JSON serializer, a few more tests, and a couple more lines of docs.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-28Added initial cut at serialization framework, along with some basic tests ↵Jacob Kaplan-Moss
and a stab at some docs. This is all a bit rough right now, so expect some bumps. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3225 bcc190cf-cafb-0310-a4f2-bffc1f526a37