1
0
mirror of https://github.com/django/django.git synced 2025-03-17 04:40:45 +00:00

24 Commits

Author SHA1 Message Date
Simon Charette
5779cc938a Fixed -- Disabled insert optimization for primary keys with defaults when loading fixtures.
Model.save_base() is called directly when loading fixtures and assumes
existing rows will be updated. Branching of "raw" allows to maintain
the optimization introduced in  while supporting this edge case.

Regression in 85458e94e38c20e57939947ee515a1a53689659f.

Thanks Reupen Shah for the report.
2019-12-30 07:49:10 +01:00
Caio Ariede
555bebe774 Fixed -- Added models.PositiveBigIntegerField. 2019-11-19 09:34:11 +01:00
Nadège Michel
895b15771e Fixed -- Prevented serializing inherited ManyToManyFields in child model. 2019-06-27 15:10:22 +02:00
Matt Wiens
e817ae74da Followed style guide for model attribute ordering. 2018-12-27 19:34:14 -05:00
dmytryi.striletskyi
dcd1025f4c Fixed -- Fixed deserializing natural keys when primary key has a default value.
Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2018-11-27 18:35:19 -05:00
Peter Inglesby
312eb5cb11 Fixed -- Allowed loaddata to handle forward references in natural_key fixtures. 2018-07-13 17:54:47 -04:00
Tim Graham
5fa4f40f45 Fixed -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-20 12:10:10 -04:00
Denys Duchier
cb7860cced Fixed -- Serialized natural keys in multi-table inheritance models.
Thanks João Paulo Melo de Sampaio for the test.
2018-02-12 21:15:04 -05:00
Claude Paroz
256182c43d Revert "Refs -- Enabled serializer tests with time pk model"
This reverts commit 01c6a3e227b645e8dea97e9befecd23d1d3b8581.
Unfortunately, the YAML serializer is not yet able to cope with time values.
2017-09-18 09:34:21 +02:00
Claude Paroz
01c6a3e227 Refs -- Enabled serializer tests with time pk model 2017-09-17 19:29:33 +02:00
Tim Graham
487362fa8f Fixed -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
2017-07-20 16:30:08 -04:00
Claude Paroz
d02fc8dfd3 Refs -- Enabled serializer tests with date/datetime pk model 2017-06-05 21:36:25 +02:00
Tim Graham
0595bca221 Fixed -- Reverted "Fixed -- Serialized natural keys in multi-table inheritance models."
This reverts commit 74a575eb7296fb04e1fc2bd4e3f68dee3c66ee0a as it causes
unexpected migrations and doesn't seem to be the best solution.
2017-02-11 06:34:59 -05:00
chillaranand
d6eaf7c018 Refs -- Replaced super(ClassName, self) with super(). 2017-01-25 12:23:46 -05:00
Simon Charette
cecc079168 Refs -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
Claude Paroz
7b2f2e74ad Refs -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18 20:18:46 +01:00
Claude Paroz
f3c43ad1fd Refs -- Removed python_2_unicode_compatible decorator usage 2017-01-18 13:44:34 +01:00
Claude Paroz
d7b9aaa366 Refs -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
Tim Graham
631f4ab061 Removed Manager.use_for_related_fields and Meta.manager_inheritance_from_future.
Per deprecation timeline. Refs ed0ff913c648b16c4471fc9a9441d1ee48cb5420.
2017-01-17 20:52:04 -05:00
Tim Graham
e6262aaaf8 Refs -- Removed invalid/unneeded FileField.upload_to in tests/docs. 2016-11-30 17:05:31 -05:00
za
321e94fa41 Refs -- Removed "Tests that", "Ensures that", etc. from test docstrings. 2016-11-10 21:30:21 -05:00
João Sampaio
74a575eb72 Fixed -- Serialized natural keys in multi-table inheritance models. 2016-10-12 20:04:57 -04:00
Tim Graham
87338198e9 Fixed -- Deprecated implicit OneToOnField parent_link. 2016-04-22 12:59:41 -04:00
Claude Paroz
50acbf3ff6 Made tests/serializers/models.py a models package
Thanks Tim Graham for the patch series review.
2015-09-26 19:58:43 +02:00