1
0
mirror of https://github.com/django/django.git synced 2025-03-10 09:22:46 +00:00
Daniel Pyrathon 819e09b848 Fixed #22210 -- Saving model instances to non-related fields.
Previously, saving a model instance to a non-related field (in
particular a FloatField) would silently convert the model to an Integer
(the pk) and save it. This is undesirable behaviour, and likely to cause
confusion so the validatio has been hardened.

Thanks to @PirosB3 for the patch and @jarshwah for the review.
2014-03-10 15:25:18 +00:00
..
2014-02-28 21:03:46 -05:00
2013-10-10 16:49:20 -04:00
2013-10-10 16:49:20 -04:00
2013-10-10 16:49:20 -04:00
2013-10-10 16:49:20 -04:00
2014-02-28 11:44:03 -05:00
2014-02-25 10:28:32 -05:00
2014-02-25 10:28:32 -05:00
2014-02-28 11:44:03 -05:00
2014-02-28 11:44:03 -05:00
2014-02-25 10:28:32 -05:00
2013-09-10 21:07:22 -04:00
2013-09-15 14:14:26 -04:00
2013-11-07 09:42:25 -05:00
2014-02-28 11:44:03 -05:00
2013-09-10 21:07:22 -04:00
2013-09-15 14:14:26 -04:00
2013-11-09 10:17:17 -05:00