summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2014-08-06Fixed #21603 -- Fixed complex RawQuerySets queries on some versions of SQLite.Alex Hill
2014-08-05Removed code that assumed BooleanField could be null.Tim Graham
Such a field will no longer pass model validation.
2014-08-05Fixed #23061: Avoided setting a limit on a query for get with ↵Shai Berger
select_for_update on Oracle Thanks Michael Miller for reporting the issue.
2014-08-04Fixed #16311 -- Added a RelatedOnlyFieldListFilter class in admin.filters.Stanislas Guerra
2014-08-03Removed unnecessary code in ManyToManyField.deconstruct()Baptiste Mispelon
2014-08-03Added missing logic to TimeField.deconstruct().Baptiste Mispelon
If auto_now or auto_now_add was used then the serialized field in the migration contained unnecessary `editable` and `blank` arguments.
2014-08-03Fixed #23156 -- Added missing BinaryField.deconstruct() method.Baptiste Mispelon
2014-08-01Fixed #21940 -- Added kwargs to contribute_to_class() of model fields..Mitar
Thanks Kronuz for the suggestion.
2014-07-30Fixed #23112 -- Field.get_choices tries to index an iterableareski
2014-07-27Fixed #23098 -- Checked that lazy choices are not evaluated too soonFlorian Apolloner
Thanks Matthieu Agopian for the report.
2014-07-26Fixed #23101 db_table wasn't copied in deconstructAbraham Martin
Forward port of 999758fc7a2d6fcb01eb40de937d4420f884788d from stable/1.7.x
2014-07-26Fixed #22887 -- Added comment for translators on unique_for_date error messageFederico Frenguelli
2014-07-16Fixed #22998 -- Updated the fast_delete logic for GFKsGavin Wahl
2014-07-14Fixed name of database connection featureShai Berger
2014-07-14Fixed #22994 -- regression with generic FK + admin list_viewAnssi Kääriäinen
The reason for the regression was that the GenericForeignKey field isn't something meta.get_field_by_name() should return. The reason is that a couple of places in Django expects get_field_by_name() to work this way. It could make sense to return GFKs from get_field_by_name(), but that should likely be done as part of meta refactoring or virtual fields refactoring patches. Thanks to glicerinu@gmail.com for the report and to Tim for working on the issue.
2014-07-09Fixed #19671 -- Added warnings that null and validators are ignored for ↵Anubhav Joshi
ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
2014-07-05Fixed various minor doc typos / references.Daniel Hahler
2014-07-04Fixed #20631 -- Increased the default EmailField max_length to 254.Tim Graham
Thanks pmartin for the report.
2014-07-02Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to ↵Anubhav Joshi
refer to correct field. Thanks Tim Graham for suggestion and review.
2014-07-01Fixed #19501 -- added Model.from_db() methodAnssi Kääriäinen
The Model.from_db() is intended to be used in cases where customization of model loading is needed. Reasons can be performance, or adding custom behavior to the model (for example "dirty field tracking" to issue automatic update_fields when saving models). A big thank you to Tim Graham for the review!
2014-07-01Fixed #14334 -- Query relation lookups now check object types.Anubhav Joshi
Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao for reviews.
2014-06-30Fixed problem with refs #10811.Anubhav Joshi
When 'to_field' is specified with a FK, then we need to check the pk value the object.
2014-06-25Fixed #22050 -- Fixed defer fields on proxy related models.Lovas Bence
2014-06-23Fixed #22889: Unneeded to_field in fk.deconstruct causing swap issuesAndrew Godwin
2014-06-23Fixed problem introduced with #refs 13711.Anubhav Joshi
2014-06-18Fixed #22778 -- Added a model Meta option to define default_related_name.Renaud Parent
Thanks jorgecarleitao and mmardini for reviews.
2014-06-17Fixed #13711 -- Model check added to ensure that auto-generated column name ↵Anubhav Joshi
is within limits of the database. Thanks russellm for report and Tim Graham for review.
2014-06-17Fixed #22819 -- Renamed output_type -> output_field in query expression API.Tim Graham
Thanks jorgecarleitao for the suggestion.
2014-06-14Improved code style of Query.table_alias() usage.Jorge C. Leitão
2014-06-14Removed unnecessary attribute assigment to SQLCompiler.Jorge C. Leitão
2014-06-14Fixed #22826 -- Improved internal usage of Query.setup_joins.Jorge C. Leitão
2014-06-11Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵Anubhav Joshi
from a different Django version. Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch.
2014-06-05Fixed #10811 -- Made assigning unsaved objects to FK, O2O, and GFK raise ↵Anubhav Joshi
ValueError. This prevents silent data loss. Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
2014-06-02Fixed #22690 -- Added a check for proxy models containing fields.Craig de Stigter
Removed the FieldError raised by ModelBase.__new__ in this case.
2014-06-01Fixed #22711 -- Adjusted ordering checks to allow implicit relation fields.Vincent-Vega
refs #19195.
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-29Fixed #22720 -- Migrations attempt to create _order twice.Víðir Valberg Guðmundsson
2014-05-21Merge pull request #2679 from ramiro/t22421Ramiro Morales
Fixed #22421 -- Regression in fixtures loading.
2014-05-21Fixed the ordering of prefetch lookups so that latter lookups can refer to ↵Loic Bistuer
former lookups. Thanks Anssi Kääriäinen and Tim Graham for the reviews. Refs #17001 and #22650.
2014-05-21Fixed #22650 -- Fixed regression on prefetch_related.Loic Bistuer
Regression from f51c1f59 when using select_related then prefetch_related on the reverse side of an O2O: Author.objects.select_related('bio').prefetch_related('bio__books') Thanks Aymeric Augustin for the report and tests. Refs #17001.
2014-05-17Fixed #22421 -- Regression in fixtures loading.Ramiro Morales
Loading fixtures were failing since the refactoring in 244e2b71f5 for inheritance setups where the chain contains abstract models and the root ancestor contains a M2M relation. Thanks Stanislas Guerra for the report. Refs #20946.
2014-05-17Fixed #22648 -- Transform.output_type should respect overridden ↵Marc Tamlyn
custom_lookup and custom_transform. Previously, class lookups from the output_type would be used, but any changes to custom_lookup or custom_transform would be ignored.
2014-05-17Merge pull request #2346 from Markush2010/ticket21905Florian Apolloner
Fixed #21905 -- Add info message if DateField or TimeField use a fixed value
2014-05-16Fixed typo.Tim Graham
2014-05-16Fixed #21905 -- Add info message if DateField or TimeField use a fixed valueMarkus Holtermann
2014-05-16Fixed #18389 -- Fixed the way contribute_to_class is calledVlad Starostin
Now this method is only called only if the object is an instance. This allows to have field classes as model class attributes.
2014-05-16Refs #21798 - Modified error number to provide room for future expansion.Russell Keith-Magee
2014-05-16Fixed #21798 -- Added check for DateTime mutually exclusive optionsDaniel Pyrathon
Added DateTimeCheckMixin to avoid the use of default, auto_now, and auto_now_add options together. Added the fields.E151 Error that is raised if one or more of these options are used together.
2014-05-10Fixed #22508 -- Avoided overwriting select_related.Aymeric Augustin
Previously, known related objects overwrote related objects loaded though select_related. This could cancel the effect of select_related when it was used over more than one level. Thanks boxm for the bug report and timo for bisecting the regression.
2014-05-06Fixed #22564 -- Prevented unneeded bytestrings in migrationsClaude Paroz
In some cases, this could lead to migrations written with Python 2 being incompatible with Python 3. Thanks Tim Graham for the report and Loïc Bistuer for the advices.