olivierdalang 
							
						 
					 
					
						
						
							
						
						825f0beda8 
					 
					
						
						
							
							Fixed   #8936  -- Added a view permission and a read-only admin.  
						
						... 
						
						
						
						Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz >
Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com > 
						
						
					 
					
						2018-05-16 06:44:55 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						5446b72003 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.11.  
						
						
						
						
					 
					
						2017-09-22 12:51:18 -04:00 
						 
				 
			
				
					
						
							
							
								François Freitag 
							
						 
					 
					
						
						
							
						
						ad4a8acdb5 
					 
					
						
						
							
							Fixed   #11557  -- Added support for a list of fields in Meta.get_latest_by and QuerySet.earliest()/latest().  
						
						
						
						
					 
					
						2017-09-05 20:14:54 -04:00 
						 
				 
			
				
					
						
							
							
								Dima Kudosh 
							
						 
					 
					
						
						
							
						
						093fd479d6 
					 
					
						
						
							
							Fixed   #28335  -- Allowed query expressions in Meta.ordering.  
						
						
						
						
					 
					
						2017-09-05 19:10:20 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						d18227e341 
					 
					
						
						
							
							Fixed   #28471  -- Clarified that Meta.indexes is preferred to index_together.  
						
						
						
						
					 
					
						2017-08-08 09:20:42 -04:00 
						 
				 
			
				
					
						
							
							
								Mariusz Felisiak 
							
						 
					 
					
						
						
							
						
						a3af8c99d9 
					 
					
						
						
							
							Removed extra characters in docs header underlines.  
						
						
						
						
					 
					
						2017-03-20 18:30:32 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						e27e4c0339 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.10.  
						
						
						
						
					 
					
						2017-01-17 20:52:05 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						bfe0d54514 
					 
					
						
						
							
							Refs  #26230  -- Removed support for model name query lookups when using Meta.default_related_name.  
						
						... 
						
						
						
						Per deprecation timeline. 
						
						
					 
					
						2017-01-17 20:52:03 -05:00 
						 
				 
			
				
					
						
							
							
								Akshesh 
							
						 
					 
					
						
						
							
						
						6a8372e6ec 
					 
					
						
						
							
							Fixed   #26808  -- Added Meta.indexes for class-based indexes.  
						
						... 
						
						
						
						* Added the index name to its deconstruction.
* Added indexes to sqlite3.schema._remake_table() so that indexes
  aren't dropped when _remake_table() is called.
Thanks timgraham & MarkusH for review and advice. 
						
						
					 
					
						2016-08-05 18:12:51 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						3aaf6cf0f3 
					 
					
						
						
							
							Fixed   #26925  -- Linked aggregation ordering topic from Meta.ordering docs.  
						
						
						
						
					 
					
						2016-07-25 06:21:39 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						ba246bd5fe 
					 
					
						
						
							
							Fixed inconsistent indentation in docs/ref/models/options.txt  
						
						
						
						
					 
					
						2016-07-15 13:42:37 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						46a38307c2 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.9.  
						
						
						
						
					 
					
						2016-05-20 11:44:29 -04:00 
						 
				 
			
				
					
						
							
							
								Loïc Bistuer 
							
						 
					 
					
						
						
							
						
						ed0ff913c6 
					 
					
						
						
							
							Fixed   #10506 ,  #13793 ,  #14891 ,  #25201  -- Introduced new APIs to specify models' default and base managers.  
						
						... 
						
						
						
						This deprecates use_for_related_fields.
Old API:
class CustomManager(models.Model):
    use_for_related_fields = True
class Model(models.Model):
    custom_manager = CustomManager()
New API:
class Model(models.Model):
    custom_manager = CustomManager()
    class Meta:
        base_manager_name = 'custom_manager'
Refs #20932 , #25897 .
Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs. 
						
						
					 
					
						2016-05-17 12:07:22 +07:00 
						 
				 
			
				
					
						
							
							
								Simon Charette 
							
						 
					 
					
						
						
							
						
						64aba7a8ab 
					 
					
						
						
							
							Fixed   #26438  -- Fixed multiple .objects typos in the docs.  
						
						... 
						
						
						
						Thanks Pablo Oubiña for the report. 
						
						
					 
					
						2016-03-31 18:27:47 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						c0181f2c1f 
					 
					
						
						
							
							Fixed   #26310  -- Documented that a queryset ordering must be specified to ensure ordered results.  
						
						... 
						
						
						
						Thanks Simon Charette for review. 
						
						
					 
					
						2016-03-03 17:54:07 -05:00 
						 
				 
			
				
					
						
							
							
								chenesan 
							
						 
					 
					
						
						
							
						
						b84f5ab4ec 
					 
					
						
						
							
							Fixed   #26230  -- Made default_related_name affect related_query_name.  
						
						
						
						
					 
					
						2016-02-27 08:48:32 -05:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						54848a96dd 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.8.  
						
						
						
						
					 
					
						2015-09-23 19:31:11 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						7c0850028f 
					 
					
						
						
							
							Documented a limitation of Options.required_db_features.  
						
						
						
						
					 
					
						2015-09-03 13:37:39 -04:00 
						 
				 
			
				
					
						
							
							
								Flavio Curella 
							
						 
					 
					
						
						
							
						
						c2e70f0265 
					 
					
						
						
							
							Fixed   #21127  -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField  
						
						
						
						
					 
					
						2015-07-27 18:28:13 -04:00 
						 
				 
			
				
					
						
							
							
								johannes.linke 
							
						 
					 
					
						
						
							
						
						27c839e0fc 
					 
					
						
						
							
							Fixed   #24881  -- Clarified Meta.order_with_respect_to documentation  
						
						
						
						
					 
					
						2015-06-19 07:01:54 -04:00 
						 
				 
			
				
					
						
							
							
								Luis Del Giudice 
							
						 
					 
					
						
						
							
						
						69ddc1b3da 
					 
					
						
						
							
							Fixed   #24693  -- Added label and label_lower property to Model._meta  
						
						
						
						
					 
					
						2015-05-02 16:58:18 +02:00 
						 
				 
			
				
					
						
							
							
								Claude Paroz 
							
						 
					 
					
						
						
							
						
						8097e54832 
					 
					
						
						
							
							Fixed   #23879  -- Allowed model migration skip based on feature/vendor  
						
						... 
						
						
						
						Thanks Carl Meyer for the report and review, and Tim Graham for the
review. 
						
						
					 
					
						2015-04-18 15:17:49 +02:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						1b8af4cfa0 
					 
					
						
						
							
							Disallowed importing concrete models without an application.  
						
						... 
						
						
						
						Removed fragile algorithm to find which application a model belongs to.
Fixed  #21680 , #21719 . Refs #21794 . 
						
						
					 
					
						2015-02-10 21:41:19 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						c79faae761 
					 
					
						
						
							
							Removed versionadded/changed notes for 1.7.  
						
						
						
						
					 
					
						2015-02-01 21:02:40 -05:00 
						 
				 
			
				
					
						
							
							
								Florian Apolloner 
							
						 
					 
					
						
						
							
						
						1ee9507eb3 
					 
					
						
						
							
							Fixed a vesionadded directive.  
						
						
						
						
					 
					
						2014-12-29 10:22:19 +01:00 
						 
				 
			
				
					
						
							
							
								Berker Peksag 
							
						 
					 
					
						
						
							
						
						5c517ec218 
					 
					
						
						
							
							Fixed versionchanged indentation in docs/.  
						
						
						
						
					 
					
						2014-11-03 21:40:26 -05:00 
						 
				 
			
				
					
						
							
							
								Renaud Parent 
							
						 
					 
					
						
						
							
						
						87d0a3384c 
					 
					
						
						
							
							Fixed   #22778  -- Added a model Meta option to define default_related_name.  
						
						... 
						
						
						
						Thanks jorgecarleitao and mmardini for reviews. 
						
						
					 
					
						2014-06-18 13:53:07 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						51c8045145 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.6.  
						
						
						
						
					 
					
						2014-03-24 11:42:56 -04:00 
						 
				 
			
				
					
						
							
							
								Anubhav Joshi 
							
						 
					 
					
						
						
							
						
						bb2ca9fe6c 
					 
					
						
						
							
							Fixed   #22172  -- Allowed index_together to be a single list (rather than list of lists)..  
						
						... 
						
						
						
						Thanks EmilStenstrom for the suggestion. 
						
						
					 
					
						2014-03-01 15:44:42 -05:00 
						 
				 
			
				
					
						
							
							
								Claude Paroz 
							
						 
					 
					
						
						
							
						
						95ede98e60 
					 
					
						
						
							
							Removed double word in model docs  
						
						
						
						
					 
					
						2014-02-09 20:30:34 +01:00 
						 
				 
			
				
					
						
							
							
								Loic Bistuer 
							
						 
					 
					
						
						
							
						
						8847a0c601 
					 
					
						
						
							
							Fixed   #16192  -- Made unique error messages in ModelForm customizable.  
						
						... 
						
						
						
						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-02-08 04:59:09 -05:00 
						 
				 
			
				
					
						
							
							
								Aymeric Augustin 
							
						 
					 
					
						
						
							
						
						1386075f62 
					 
					
						
						
							
							Updated release notes on app_label.  
						
						... 
						
						
						
						Django determines automatically which application models belong to,
provided the application can be imported without importing models. 
						
						
					 
					
						2014-01-01 19:45:43 +01:00 
						 
				 
			
				
					
						
							
							
								Loic Bistuer 
							
						 
					 
					
						
						
							
						
						27f04e79b1 
					 
					
						
						
							
							Fixed   #21479  -- Favor 'migrate' over 'syncdb' in the docs.  
						
						
						
						
					 
					
						2013-11-21 15:12:39 +01:00 
						 
				 
			
				
					
						
							
							
								Shai Berger 
							
						 
					 
					
						
						
							
						
						317040a73b 
					 
					
						
						
							
							Fixed   #13245 : Explained Oracle's behavior w.r.t db_table  
						
						... 
						
						
						
						and how to prevent table-name truncation
Thanks russellm & timo for discussion, and timo for review. 
						
						
					 
					
						2013-10-23 14:51:22 +03:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						fb51c9a0f2 
					 
					
						
						
							
							Fixed spelling; refs  #16895 .  
						
						... 
						
						
						
						Thanks Panagiotis Issaris for the report. 
						
						
					 
					
						2013-09-09 11:30:31 -04:00 
						 
				 
			
				
					
						
							
							
								e0ne 
							
						 
					 
					
						
						
							
						
						cbf08c6b0c 
					 
					
						
						
							
							Fixed   #16895  -- Warned about cost of QuerySet ordering  
						
						... 
						
						
						
						Thanks outofculture at gmail.com for the suggestion. 
						
						
					 
					
						2013-09-09 09:47:18 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						a89c856a7a 
					 
					
						
						
							
							Fixed typo in docs/ref/models/options.txt  
						
						
						
						
					 
					
						2013-08-30 21:05:36 -04:00 
						 
				 
			
				
					
						
							
							
								Anssi Kääriäinen 
							
						 
					 
					
						
						
							
						
						e973ee6a98 
					 
					
						
						
							
							Fixed   #20988  -- Added model meta option select_on_save  
						
						... 
						
						
						
						The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649  
						
						
					 
					
						2013-08-30 09:41:07 +03:00 
						 
				 
			
				
					
						
							
							
								Andrew Godwin 
							
						 
					 
					
						
						
							
						
						b6a957f0ba 
					 
					
						
						
							
							Merge remote-tracking branch 'core/master' into schema-alteration  
						
						... 
						
						
						
						Conflicts:
	docs/ref/django-admin.txt 
						
						
					 
					
						2013-08-19 18:30:48 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						7b69c3e775 
					 
					
						
						
							
							Removed versionadded/changed annotations for 1.5  
						
						
						
						
					 
					
						2013-08-19 09:09:41 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Godwin 
							
						 
					 
					
						
						
							
						
						588b523233 
					 
					
						
						
							
							Merge remote-tracking branch 'core/master' into schema-alteration  
						
						... 
						
						
						
						Conflicts:
	django/db/models/options.py 
						
						
					 
					
						2013-08-09 14:37:37 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						ddae74b64c 
					 
					
						
						
							
							Fixed   #9057  -- Added default_permissions model meta option.  
						
						... 
						
						
						
						Thanks hvendelbo for the suggestion and koenb for the draft patch. 
						
						
					 
					
						2013-08-09 09:19:52 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Godwin 
							
						 
					 
					
						
						
							
						
						de64c4d6e9 
					 
					
						
						
							
							Merge remote-tracking branch 'core/master' into schema-alteration  
						
						... 
						
						
						
						Conflicts:
	django/core/management/commands/flush.py
	django/core/management/commands/syncdb.py
	django/db/models/loading.py
	docs/internals/deprecation.txt
	docs/ref/django-admin.txt
	docs/releases/1.7.txt 
						
						
					 
					
						2013-08-09 14:17:30 +01:00 
						 
				 
			
				
					
						
							
							
								Dominic Rodger 
							
						 
					 
					
						
						
							
						
						c33d1ca1d9 
					 
					
						
						
							
							Fixed   #20852  - Fixed incorrectly generated left quotes in docs.  
						
						... 
						
						
						
						Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.
Instances of the problem were found by looking for
">‘" in the generated HTML. 
						
						
					 
					
						2013-08-06 07:13:17 -04:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						5df84b268d 
					 
					
						
						
							
							Removed unused model option "admin"  
						
						
						
						
					 
					
						2013-08-01 10:27:30 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Godwin 
							
						 
					 
					
						
						
							
						
						f8297f6323 
					 
					
						
						
							
							More migration docs, and conversion of all easy syncdb references  
						
						
						
						
					 
					
						2013-07-25 16:19:36 +01:00 
						 
				 
			
				
					
						
							
							
								Tim Graham 
							
						 
					 
					
						
						
							
						
						2333c9662b 
					 
					
						
						
							
							Fixed   #14007  -- Added model discovery in models module without the need to specify app_label.  
						
						... 
						
						
						
						Thanks mark@ and Aramgutang for work on the patch. 
						
						
					 
					
						2013-07-16 19:32:30 -04:00 
						 
				 
			
				
					
						
							
							
								Marc Egli 
							
						 
					 
					
						
						
							
						
						e4591debd1 
					 
					
						
						
							
							Add missing imports and models to the examples in the the model layer documentation  
						
						
						
						
					 
					
						2013-05-18 18:38:52 +02:00 
						 
				 
			
				
					
						
							
							
								Johan Charpentier 
							
						 
					 
					
						
						
							
						
						186bff4703 
					 
					
						
						
							
							Fixed   #20053  -- Fix index_together documentation  
						
						
						
						
					 
					
						2013-03-15 15:15:52 +01:00 
						 
				 
			
				
					
						
							
							
								Nick Sandford 
							
						 
					 
					
						
						
							
						
						fe54377dae 
					 
					
						
						
							
							Fixed   #17813  -- Added a .earliest() method to QuerySet  
						
						... 
						
						
						
						Thanks a lot to everybody participating in developing this feature.
The patch was developed by multiple people, at least Trac aliases
tonnzor, jimmysong, Fandekasp and slurms.
Stylistic changes added by committer. 
						
						
					 
					
						2013-01-20 06:39:35 +02:00