summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2014-07-02Fixed typo in docs/ref/models/instances.txtTim Graham
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-06-18Fixed #22778 -- Added a model Meta option to define default_related_name.Renaud Parent
Thanks jorgecarleitao and mmardini for reviews.
2014-06-18Fixed #14481 -- Documented implicit "through" class created by ManyToManyField.Jorge C. Leitão
Thanks to jonathanmorgan for the report and initial patch.
2014-06-17Fixed #22819 -- Renamed output_type -> output_field in query expression API.Tim Graham
Thanks jorgecarleitao for the suggestion.
2014-06-15Fixed #22660: Doc'd you can't have unmigrated apps depend on migratedAndrew Godwin
2014-06-12Fixed #22813 -- Updated Pillow URL in documentationClaude Paroz
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-04Fixed #22710 -- Amended aggregation note for empty QuerySetsGuillaume Pannatier
Thanks smeaton for report and Joël Rochat for spell check
2014-06-02Unicode method on model should return unicodeRyan Nowakowski
The example of a __unicode__ model method should return a unicode value instead of a string.
2014-05-30Fixed #22710 -- Documented aggregation behavior for empty QuerySets.Guillaume Pannatier
Thanks matklad for the report.
2014-05-25Fixed typo in docs/ref/models/custom-lookups.txt.Matthew Schinckel
2014-05-17Fixed #22019 -- Added Model.objects reference documentation.Aliaksandr Semianiuk
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-14Fix typo that disabled code example highlightingÉric Araujo
2014-04-30Fixed #19195 -- Allow explicit ordering by a relation `_id` field.Simon Charette
Thanks to chrisedgemon for the report and shaib, akaariai and timgraham for the review.
2014-04-30Fixed #22537 -- Add tests and improved docs for field subclass with choices.Mike Fogel
2014-04-25Fixed #22493 - Added warnings to raw() and extra() docs about SQL injectionMoayad Mardini
Thanks Erik Romijn for the suggestion.
2014-04-21Fixed queries that may return unexpected results on MySQL due to typecasting.Erik Romijn
This is a security fix; disclosure to follow shortly.
2014-04-18Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save().Tim Graham
2014-04-16Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of docs and tests.chriscauley
Thanks tomwys for the suggestion.
2014-04-10Documentation fixes for the select_for_update change.Shai Berger
Refs #22343; thanks Tim Graham for the fixes.
2014-04-10Fixed #22343 -- Disallowed select_for_update in autocommit modeShai Berger
The ticket was originally about two failing tests, which are fixed by putting their queries in transactions. Thanks Tim Graham for the report, Aymeric Augustin for the fix, and Simon Charette, Tim Graham & Loïc Bistuer for review.
2014-04-08Fixed #22405 -- Fixed string error in models/queries docs.Anubhav Joshi
2014-03-24Removed versionadded/changed annotations for 1.6.Tim Graham
2014-03-24Fixed #22048 - Enhanced docs to cover nonexistent one-to-one relationships.Adam Kaliński
Thanks EvilDMP for the suggestion.
2014-03-22Fixed #22313 -- Removed 'u' prefixes from documentationClaude Paroz
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-21Fixed minor syntax error in Queryset docsBryan Helmig
2014-03-11Fixed #22217 - ManyToManyField.through_fields fixes.Akis Kesoglou
- Docs description of arguments mix up. - Keep it from erroneously masking E332 check. - Add checks E338 and E339, tweak message of E337.
2014-03-07Fixed #21863 -- supplemented get_lookup() with get_transform()Anssi Kääriäinen
Also fixed #22124 -- Expanded explanation of exactly what is going on in as_sql() methods.
2014-03-05Fixed #14549 - Removed restriction of single FKs on intermediary tablesAkis Kesoglou
Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
2014-03-05Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlengthChris Wilson
2014-03-03Allowed custom querysets when prefetching single valued relationsLoic Bistuer
The original patch for custom prefetches didn't allow usage of custom queryset for single valued relations (along ForeignKey or OneToOneKey). Allowing these enables calling performance oriented queryset methods like select_related or defer/only. Thanks @akaariai and @timgraham for the reviews. Refs #17001.
2014-03-01Fixed #22172 -- Allowed index_together to be a single list (rather than list ↵Anubhav Joshi
of lists).. Thanks EmilStenstrom for the suggestion.
2014-02-28Fixed spelling mistakes in docs.Tim Graham
2014-02-28Fixed doc typos.Tim Graham
2014-02-25Fixed #22145 -- Clarified docs on Field.blank and Field.null options.navneet suman
Thanks skipjack at peru.com for the suggestion.
2014-02-25Fixed docs typos.Szczepan Cieślik
2014-02-17Fixed #22023 -- Raised an error for values() followed by defer() or only().Artur Frysiak
Previously, doing so resulted in invalid data or crash. Thanks jtiai for the report and Karol Jochelson, Jakub Nowak, Loic Bistuer, and Baptiste Mispelon for reviews.
2014-02-15Fixed #21884 -- Mentioned that exact is the defaut QuerySet lookup typechomik
Thanks to cjerdonek for the suggestion.
2014-02-13Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol
Thanks Tim Graham for the report and recommendations
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2014-02-09Removed double word in model docsClaude Paroz
2014-02-08Removed extra backquote in field docsClaude Paroz
2014-02-08Fixed #16192 -- Made unique error messages in ModelForm customizable.Loic Bistuer
Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-23Fixed #21865 -- Incorrect signs in documented example.Marc Tamlyn
Maths is hard.
2014-01-23Fixed #21864 -- Fixed missing quote in custom lookup example.Baptiste Mispelon
Thanks to Chris Barna for the report.
2014-01-23Fixed some punctuation; thanks Chris Jerdonek.Tim Graham