Tim Graham
54546cee88
Fixed #22942 -- Noted that __init__.py files are required for management command detection.
...
Thanks Diego Cerdán for the suggestion.
2014-07-07 18:04:00 -04:00
Tim Graham
e6b3d6c22f
Fixed #22966 -- Clarified which release notes appear for each doc version.
...
Thanks haimunt at yahoo.com for the suggestion.
2014-07-07 15:29:01 -04:00
Collin Anderson
2c1384fbac
Fixed a few PEP8 errors in settings doc.
2014-07-06 18:31:10 -04:00
Andrew Godwin
32fefc6f70
Document --fake and --list on migrate command
2014-07-06 00:30:18 -07:00
Daniel Hahler
67f9f385aa
Fixed various minor doc typos / references.
2014-07-05 20:26:26 -04:00
Andrew Godwin
f751109cb2
Merge pull request #2881 from charettes/ticket-22943-compiled-regex-deconstruction
...
Fixed #22943 -- Correctly serialize compiled regexes.
2014-07-05 16:37:10 -07:00
Tim Graham
7fd55c3481
Fixed #20631 -- Increased the default EmailField max_length to 254.
...
Thanks pmartin for the report.
2014-07-04 14:15:00 -04:00
Simon Charette
35c2c37041
Fixed #22943 -- Correctly serialize compiled regexes.
...
Thanks to antialiasis at gmail dot com for the patch.
2014-07-04 13:34:20 -04:00
Loic Bistuer
1966054feb
Fixed #22915 -- Document backward incompatible changes in the ValidationError constructor.
...
This patch also fixes update_error_dict to better handle the use case described
in this ticket, previously the type of the provided container could be lost in
some conditions.
Thanks Russell Keith-Magee for the report and Tim Graham for review.
2014-07-04 17:05:31 +07:00
Tim Graham
814bcc3395
Fixed #22924 -- Added a note about MEDIA_URL in templates.
...
Thanks raphael.herouart at gmail.com
2014-07-03 09:21:20 -04:00
Anubhav Joshi
9bc2d766a0
Fixed #21755 -- Added ForeignKey support to REQUIRED_FIELDS.
...
This allows specifying ForeignKeys in REQUIRED_FIELDS when using a
custom User model.
Thanks cjerdonek and bmispelon for suggestion and timgraham for review.
2014-07-03 07:42:52 -04:00
Daniel Lindsley
23d68c0f0d
Removed myself from committers.
2014-07-02 23:33:03 -05:00
LarryBrid
a93ee5112d
Fixed #22941 - Added support for domain-only links with chars after the TLD to urlize.
...
It now works with something like google.com/foo/bar
2014-07-02 20:36:53 -04:00
Tim Graham
42f5c8f397
Fixed typo in docs/ref/models/instances.txt
2014-07-02 13:21:34 -04:00
Tim Graham
1a3bec4a26
Fixed #18108 -- Added instructions for translating documentation.
...
Thanks Claude Paroz.
2014-07-02 13:16:31 -04:00
Anubhav Joshi
10e83d48a3
Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to refer to correct field.
...
Thanks Tim Graham for suggestion and review.
2014-07-02 13:01:36 -04:00
Tim Graham
c37000ab04
Clarified that LocMemCache is per-process; refs #7639 .
...
Thanks projectgus for the suggestion.
2014-07-02 10:12:43 -04:00
Éric Araujo
5842d8eba4
Removed non-existent reference to args/kwargs in manager docs.
2014-07-02 07:54:02 -04:00
Andrew Godwin
e9249bc20b
Fixed #22932 : Documented circular dependency issues with swappable user
2014-07-01 20:54:46 -07:00
Tim Graham
db9a1a0c47
Fixed #13755 -- Added a tip for caching responses that vary on AJAX.
...
Thanks mila for the suggestion.
2014-07-01 17:32:14 -04:00
Tim Graham
20ec9daf7c
Fixed #22933 -- Deprecated django.template.resolve_variable().
2014-07-01 17:29:41 -04:00
Claude Paroz
232f2028d5
Included irc link in paragraph to allow for l10n
...
Translators may want to change the irc link pointing to a
language-specific channel.
2014-07-01 21:54:32 +02:00
Anssi Kääriäinen
0b6f05ede6
Fixed #19501 -- added Model.from_db() method
...
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-01 16:31:01 +03:00
Curtis
71461b14ab
Fixed #22691 -- Added aliasing to cached_property.
2014-07-01 06:32:53 -04:00
Anubhav Joshi
34ba86706f
Fixed #14334 -- Query relation lookups now check object types.
...
Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao
for reviews.
2014-07-01 06:12:58 -04:00
Tim Graham
81edf2d006
Fixed non-multiple of 4 indentation in docs/ref/request-response.txt.
2014-06-30 19:47:19 -04:00
Tim Graham
bbf0a9545b
Fixed #22482 -- Recommended using data migrations in contrib.sites docs.
...
Thanks scibi for the report.
2014-06-30 18:48:49 -04:00
Tim Graham
f3a933d7c1
Made docs CSS for versionchanged/added more similar to docs.djangoproject.com.
2014-06-30 18:38:30 -04:00
Tim Graham
e3c7af18a3
Fixed #19489 -- Documented host parameter of assertRedirects().
...
Thanks mrknacky at gmail.com for the report and gajimenezmaggiora
for the draft patch.
2014-06-30 17:52:04 -04:00
Tim Graham
874053edf9
Fixed #21942 -- Moved Form.clean() to form API docs.
...
Thanks cjerdonek for the suggestion.
2014-06-30 16:30:57 -04:00
Claude Paroz
0b5bafe993
Removed reference to old middleware
2014-06-30 20:36:18 +02:00
Tim Graham
cf252dbea6
Fixed #8162 -- Increased Permission.name max_length to 255 characters.
2014-06-30 14:20:51 -04:00
Tim Graham
5359188b08
Fixed docs/ref/contrib/auth.txt so that sphinx links work properly.
2014-06-30 14:20:51 -04:00
Tim Graham
1e8411259f
Fixed #22912 -- Warned about a common mistake in tutorial 5.
2014-06-27 09:51:21 -04:00
Matt Deacalion Stevens
ec85df2fa5
Fixed and enhanced new HTML form docs.
2014-06-26 13:57:19 -04:00
Éric Araujo
e9c730f6be
Fixed copy/paste typos in StreamingHttpResponse doc.
2014-06-26 07:27:13 -04:00
Gert Van Gool
a8c5630c98
Fixed typo in parameter name doc for BaseCommand.check().
2014-06-26 07:23:32 -04:00
Ramiro Morales
77c0a904cb
Fixed typo in revamped forms intro doc.
2014-06-25 12:15:20 -03:00
Duncan Parkes
fd4ccd045c
Fixed #22799 -- Made GET and POST on HttpRequest QueryDicts, and FILES a MultiValueDict.
...
Previously, GET, POST, and FILES on an HttpRequest were created in
the __init__ method as dictionaries. This was not something you would
usually notice causing trouble in production as you'd only see a
WSGIRequest, but in testing using the test client, calling .getlist
on GET, POST, or FILES for a request with no get/post data resulted in
an AttributeError.
Changed GET and POST on an HttpRequest object to be mutable
QueryDicts (mutable because the Django tests, and probably many
third party tests, were expecting it).
2014-06-24 22:03:22 -04:00
Duncan Parkes
d68987ae25
Fixed #22897 -- Made QueryDict query_string argument optional.
...
Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
2014-06-24 22:02:03 -04:00
Duncan Parkes
7f4e2ef1e9
Improved documentation for QueryDict.
2014-06-24 21:40:21 -04:00
Peter Kowalczyk
48241ec9c4
Fixed typo in middleware docs.
...
Function definition should have an ending colon.
2014-06-24 16:06:06 -04:00
Daniele Procida
cd20b5d186
Fixed #22796 -- Added a more basic explanations of forms.
...
Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews.
2014-06-24 14:55:22 -04:00
Anubhav Joshi
dbbcfca476
Fixed #21668 -- Return detailed error page when SuspiciousOperation is raised and DEBUG=True
...
Thanks GDorn and gox21 for report.
Thanks Tim Graham for idea and review.
2014-06-24 08:55:36 -04:00
Tim Graham
150d88cc2c
Restored is_anonymous() check in ModelBackend permission checking removed in refs #17903 .
...
Thanks Florian Apolloner for raising the issue.
2014-06-24 07:09:38 -04:00
Claude Paroz
460ec09d2e
Fixed #22880 -- Added FAQ entry about UnicodeDecodeError
...
Thanks Víðir Valberg Guðmundsson for the report and
Tim Graham for the review.
2014-06-24 09:02:28 +02:00
Jorge C. Leitão
c33447a50c
Fixed #17903 -- Modified ModelBackend to eliminate permissions on inactive users.
...
Thanks to @SmileyChris for the report and @timgraham for review.
2014-06-23 19:57:20 -04:00
Tim Graham
535219e4f7
Fixed typo: MultipleModelChoiceField -> ModelMultipleChoiceField.
2014-06-23 18:50:51 -04:00
Tim Graham
1bbffe7867
Fixed #22888 -- Removed some unnecessary text in tutorial 3.
2014-06-23 09:10:44 -04:00
Claude Paroz
9618d68b34
Fixed #8033 -- Explained app registry error during translation setup
...
Thanks Tim Graham and Aymeric Augustin for the review.
2014-06-23 09:31:45 +02:00
Tim Graham
1892ced10a
Added refs #22514 to 1.6.6 release notes.
2014-06-20 18:47:14 -04:00
Marc Tamlyn
2764146586
Fixed #22838 -- Deprecated ModelChoiceField.cache_choices.
...
Undocumented, untested and probably not even useful feature.
2014-06-20 20:29:46 +01:00
Luan Pablo
407d070329
Fixed #22782 -- Added i18n attr to Sitemap class
...
It makes possible to have your sitemap in multiple languages when
using i18n in URLs.
2014-06-20 13:04:41 -04:00
Huu Nguyen
fbb684d95e
Fixed #22862 -- Added --noinput option to makemigrations.
...
Thanks artortenburger for the report.
2014-06-20 08:55:02 -04:00
Maxime Turcotte
608aa8d101
Fixed #22836 -- Linked tutorial05 to the right section of tutorial04.
2014-06-20 08:14:17 -04:00
Andrew Godwin
08221d1b5c
Fixed #22874 : Document that AUTH_USER_MODEL must be in first migration
2014-06-19 23:48:29 -07:00
Andrew Godwin
9f4852f649
Fixed #22863 : Improve clarity of makemigrations for non-db params
2014-06-19 23:41:32 -07:00
Maxime Turcotte
9996158db4
Fixed #22835 -- Deprecated NoArgsCommand.
2014-06-19 08:54:59 -04:00
Tim Graham
63670a474c
Removed a CSRF example for jQuery < 1.5.
2014-06-18 14:58:50 -04:00
Tim Graham
0be4d64487
Fixed #22859 -- Improved crossDomain technique in CSRF example.
...
Thanks flisky for the report.
2014-06-18 14:35:38 -04: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
Jorge C. Leitão
de90129070
Fixed #14481 -- Documented implicit "through" class created by ManyToManyField.
...
Thanks to jonathanmorgan for the report and initial patch.
2014-06-18 12:30:10 -04:00
Andrew Godwin
8d2ac948a9
Fixed #22853 : Swapped models are now ignored for migration operations.
2014-06-17 17:45:38 -07:00
Anubhav Joshi
91f1b6dcdc
Fixed #13711 -- Model check added to ensure that auto-generated column name is within limits of the database.
...
Thanks russellm for report and Tim Graham for review.
2014-06-17 16:16:02 -04:00
Collin Anderson
a8fa96796f
Tutorial: Consistent url syntax
2014-06-17 12:23:26 -04:00
Tim Graham
95cc0e15b4
Fixed #22819 -- Renamed output_type -> output_field in query expression API.
...
Thanks jorgecarleitao for the suggestion.
2014-06-17 11:57:16 -04:00
Andrew Godwin
a8ce5fdc28
Fixed #22470 : Full migration support for order_with_respect_to
2014-06-15 14:56:51 -07:00
Andrew Godwin
24afb1d7a7
Fixed #22660 : Doc'd you can't have unmigrated apps depend on migrated
2014-06-15 11:47:23 -07:00
vagrant
7a1f8414c3
Fixed #22842
2014-06-15 10:44:33 +00:00
Claude Paroz
c281831a5c
Complemented dwithin docs about using geographic geometries
...
Refs #22830 . Thanks django@gfairchild.com for the suggestion.
2014-06-14 20:52:37 +02:00
Claude Paroz
4b4524291a
Converted test management command to argparse
...
Keeping backwards compatibility with test_runner.option_list is
tricky and would imply transforming an optparse.Option to an
argparse.Action. I choose to introduce a backwards incompatible
change because it only affects testing, not runtime behavior.
2014-06-14 13:43:39 +02:00
Claude Paroz
cbff097bd9
Documented optparse to argparse changes for management commands
2014-06-14 13:42:43 +02:00
mlavin
4696cd9671
Fixed #22477 -- Removed contrib middleware from the global settings defaults.
...
Also added a compatibility check for changed middleware defaults.
Forwardport of d94de802d3
from stable/1.7.x
2014-06-13 12:45:56 -04:00
Jorge C. Leitão
cc35bd461d
Fixed #7599 -- Added get_user_permissions to ModelBackend.
...
Thanks to @gdub for the report and intial patch and
@charettes and @timgraham for the review.
2014-06-13 09:34:04 -04:00
Maxime Turcotte
504c89e800
Fixed #6327 -- Added has_module_permission method to BaseModelAdmin
...
Thanks chrj for the suggestion.
2014-06-13 09:31:40 -04:00
Greg Chapple
bf743a4d57
Fixed #16087 -- Added ResolverMatch instance to test client response.
...
Thanks mrmachine for the suggestion.
2014-06-13 08:50:43 -04:00
Moayad Mardini
2d425116e2
Fixed #22349 -- Added a note clarifying `RawQuerySet` has no `__len__`.
...
Thanks cdestigter for the report.
2014-06-12 16:41:49 -04:00
Tim Graham
bcc3d2b978
Fixed #22818 -- Clarified you need to cd into the Django clone.
...
Thanks Josh Parris.
2014-06-12 10:19:03 -04:00
Tim Graham
1c58cabad7
Fixed #22811 -- Allowed setting both the old and new TEST database settings.
...
An ImproperlyConfigured exception will be raised they mismatch.
2014-06-12 08:17:49 -04:00
Claude Paroz
dfa3505ff1
Fixed #22813 -- Updated Pillow URL in documentation
2014-06-12 08:53:36 +02:00
Maxime Lorant
c307383ec9
Fixed typo in docs/ref/forms/validation.txt.
2014-06-11 17:17:21 -04:00
Greg Chapple
4123f55c33
Added link to data migrations in initial data deprecation note
2014-06-11 19:46:57 +01:00
Anubhav Joshi
42736ac8e8
Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets 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-11 10:03:34 -04:00
Florian Apolloner
e2efc8965e
Fixed #22680 -- I/O operation on closed file.
...
This patch is two-fold; first it ensure that Django does close everything in
request.FILES at the end of the request and secondly the storage system should
no longer close any files during save, it's up to the caller to handle that --
or let Django close the files at the end of the request.
2014-06-11 08:57:30 +02:00
Maxime Turcotte
f97c53c098
Fixed #22801 -- Added 'www.' to diveintopython.net links
2014-06-10 15:38:25 -04:00
Tim Graham
93d05536fd
Fixed #22770 -- Removed create_superuser from post_migrate signals.
...
Moved logic to syncdb command for backwards compatibility.
2014-06-10 14:37:37 -04:00
Jorge C. Leitão
a00b78b1e2
Fixed #17431 -- Added send_mail() method to PasswordResetForm.
...
Credits for the initial patch go to ejucovy;
big thanks to Tim Graham for the review.
2014-06-10 14:00:52 -04:00
Tim Graham
34f4fd7024
Corrected some indentation in docs/topics/auth/default.txt.
2014-06-10 09:18:58 -04:00
Andreas Damgaard Pedersen
9560dac3c0
Close autoescape tag in template documentation.
2014-06-10 11:48:08 +01:00
Aymeric Augustin
df09d85482
Fixed #17552 -- Removed a hack for IE6 and earlier.
...
It prevented the GZipMiddleware from compressing some data types even on
more recent version of IE where the corresponding bug was fixed.
Thanks Aaron Cannon for the report and Tim Graham for the review.
2014-06-10 08:42:31 +02:00
Tim Graham
bc0aba7786
Dropped support for SpatiaLite < 2.4.
2014-06-09 17:53:25 -04:00
Tim Graham
c17cd151d8
Doc edits for refs #22487 .
2014-06-09 12:09:16 -04:00
Tim Graham
dd55132643
Removed extras/csrf_migration_helper.py
2014-06-09 11:53:09 -04:00
Tim Graham
3a926c0778
Tweaked order of create_test_db arguments for backwards compatibility.
...
Since `serialize` was backported to 1.7, it should appear before `keepdb`.
2014-06-09 11:12:28 -04:00
Tim Graham
67ce2e74e1
Added missing deprecation note for fastcgi in 1.7 release notes; refs #20766 .
2014-06-09 10:29:22 -04:00
Andrew Godwin
8c12d51ea2
Fixed #22487 : Optional rollback emulation for migrated apps
2014-06-08 19:30:15 -07:00
Andrew Godwin
6fd455adfc
Fixed #22436 : More careful checking on method ref'ce serialization
2014-06-07 17:05:51 -07:00
Tim Graham
250e2b422b
Silenced some GIS deprecation warnings; refs #22384 .
2014-06-07 19:35:57 -04:00
Aymeric Augustin
58de495c54
Fixed #17427 -- Removed dubious definition of connections equality.
2014-06-07 17:04:10 +02:00
Unai Zalakain
11284a63d4
Fixed #18314 -- Corrected request.build_absolute_uri() handling of paths starting with //
...
``HttpRequest.build_absolute_uri()`` now correctly handles paths starting with ``//``.
``WSGIRequest`` now doesn't remove all the leading slashes either,
because ``http://test/server `` and http://test//server `` aren't the same thing
(RFC2396).
Thanks to SmileyChris for the initial patch.
2014-06-07 08:59:02 -04:00
Tim Graham
9ed4a8c6b1
Fixed #17238 -- Added source code links to docs using sphinx.ext.viewcode.
...
Thanks santiagobasulto for the suggestion.
2014-06-07 08:54:54 -04:00
Aymeric Augustin
cfcca7ccce
Fixed #3711 , #6734 , #12581 -- Bounded connection.queries.
...
Prevented unlimited memory consumption when running background tasks
with DEBUG=True.
Thanks Rob, Alex, Baptiste, and others.
2014-06-07 14:37:43 +02:00
Tim Graham
7f4347b176
Removed duplicate "Deprecated in Django A.B" text in docs.
...
sphinx 1.2+ adds this text itself.
2014-06-06 20:31:23 -04:00
Tim Graham
5472bf4df0
Added formatting and line wrapping to checks reference doc.
2014-06-06 15:19:20 -04:00
Aymeric Augustin
1181b8a4a9
Merge pull request #2764 from gchp/ticket-20550
...
Fixed #20550 -- Added keepdb argument to destroy_test_db
2014-06-06 14:05:41 +02:00
Greg Chapple
72f055e535
Fixed #20550 -- Added keepdb argument to destroy_test_db
2014-06-05 23:17:27 +01:00
Susan Tan
484f3edf1e
Fixed #18400 -- Modified length template filter to return 0 for unknown variables.
...
Thanks Florian for the bug report, luyikei for the initial code patch, and
Bouke for the code review feedback.
2014-06-05 15:41:56 -04:00
Éric Araujo
84cafc2b35
Fix missing highlighting in some code examples
2014-06-05 14:54:28 -04:00
Anubhav Joshi
5643a3b51b
Fixed #10811 -- Made assigning unsaved objects to FK, O2O, and GFK raise ValueError.
...
This prevents silent data loss.
Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
2014-06-05 13:12:01 -04:00
Moayad Mardini
4f72e5f03a
Fixed #21773 -- made daemon threads default in the development server.
...
Thanks clime for the report.
2014-06-05 12:26:24 -04:00
Zbigniew Siciarz
52d9521354
Fixed RST syntax in 1.8 release docs.
2014-06-05 12:31:04 +02:00
Guillaume Pannatier
7f27cca5c5
Fixed #22710 -- Amended aggregation note for empty QuerySets
...
Thanks smeaton for report and Joël Rochat for spell check
2014-06-04 12:44:58 -04:00
Tim Graham
2f7a7842ba
Fixed #22747 -- Add backwards compatibility tip for new behavior of formset.save(commit=False).
...
Thanks django at patjack.co.uk.
2014-06-04 12:37:10 -04:00
gyx1000
7e2c87809c
Fixed #22684 -- Amended SelectDateWidget.empty_label to accept a tuple of values.
...
Thanks danielsamuels for the report
2014-06-04 07:23:25 -04:00
Tim Graham
61960dd02c
Added a patch review checklist.
2014-06-03 11:55:17 -04:00
INADA Naoki
7be646425f
Updated current state of MySQL Connector/Python.
2014-06-03 08:10:07 -04:00
Tim Graham
593b3c32bd
Merge pull request #2756 from tubaman/return_unicode
...
Unicode method on model should return unicode
2014-06-03 07:38:12 -04:00
Tim Graham
4445d36d47
Fixed #22384 -- Deprecated reversing URLs by dotted path.
2014-06-03 07:30:14 -04:00
Ryan Nowakowski
f39b8867a1
Unicode method on model should return unicode
...
The example of a __unicode__ model method should return a unicode value
instead of a string.
2014-06-02 22:49:43 -05:00
Bryce Nesbitt
e020894470
Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.
2014-06-02 18:50:50 -04:00
Nick Presta
11f0899bbe
Fixed #11776 -- Added CSS class for non-field/top of form errors.
...
Thanks Daniel Pope for the suggestion.
2014-06-02 15:22:15 -04:00
Tim Graham
a00efa30d6
Fixed #22748 -- Corrected post_migrate usage example.
...
Thanks Rudolph for the report.
2014-06-02 11:35:20 -04:00
Craig de Stigter
ce993efda8
Fixed #22690 -- Added a check for proxy models containing fields.
...
Removed the FieldError raised by ModelBase.__new__ in this case.
2014-06-02 09:32:38 -04:00
Jonathan Lindén
5b98ba08e2
Fixed #21938 -- Moved documentation for error views to reference guide.
2014-06-01 13:05:19 -04:00
Aymeric Augustin
2a5c750ad1
Merge pull request #2726 from gchp/ticket-20550
...
Fixed #20550 -- Added ability to preserve test db between runs
2014-06-01 17:26:56 +02:00
Guillaume Pannatier
7c6e96ec1f
Fixed #22710 -- Documented aggregation behavior for empty QuerySets.
...
Thanks matklad for the report.
2014-05-30 08:01:21 -04:00
Tim Graham
7ff326928a
Improved deprecation plan links in release notes.
2014-05-29 18:58:12 -04:00
Moayad Mardini
56cfa508c7
Fixed #22682 -- `makemigrations` will create `MIGRATION_MODULES` package
...
`makemigrations` will automatically create the package specified
in `MIGRATION_MODULES` if it doesn't already exist.
Thanks ovidiuc4 for the report.
2014-05-30 01:23:09 +03:00
Alex Gaynor
1dcc603eff
Fixed several typos in Django
2014-05-28 17:39:14 -07:00
Guillaume Pannatier
32586b0ba4
Fixed #22684 -- Added `empty_label` option on `django.forms.extras.widets.SelectDateWidget`
...
Thanks danielsamuels for the report
2014-05-28 13:23:28 -04:00
Greg Chapple
b7aa7c4ab4
Fixed #20550 -- Added ability to preserve test db between runs
2014-05-28 16:22:46 +01:00
Tim Graham
4b57e203fe
Fixed spelling in docs.
2014-05-27 19:46:48 -04:00
Moayad Mardini
2ea1e70b85
Fixed #22601 -- Added a note about model inheritance.
...
Thanks semenov for the report.
2014-05-27 19:42:16 -04:00
Moayad Mardini
2e613ea5c5
Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.
...
`makemigrations --dry-run` will output the complete migrations file
that would be written if it's used along with `--verbosity 3`.
2014-05-27 00:40:55 +03:00
Marc Tamlyn
b625e861e5
Fix an error in a documented lookup example.
2014-05-26 14:44:50 +01:00
Moayad Mardini
e98d303562
Fixed #22692 -- Added docs for `makemigrations` two command options.
...
Added documentation about `--dry-run` and `--merge`.
2014-05-25 19:34:20 -04:00
Tim Graham
83f4e86595
Fixed too short title underline in docs.
2014-05-25 19:26:12 -04:00
Matthew Schinckel
2b432d4634
Fixed typo in docs/ref/models/custom-lookups.txt.
2014-05-25 19:01:51 -04:00
Claude Paroz
b8fc167b32
Fixed #22688 -- Documented ready() may be called more than once
2014-05-24 15:58:57 +02:00
Marc Tamlyn
9fb0f5dddc
Fixed #22510 -- Harden field removal to only None.
...
Refs #8620 .
If we allow any value to remove form fields then we get name clashes
with method names, media classes etc. There was a backwards
incompatibility introduced meaning ModelForm subclasses with declared
fields called media or clean would lose those fields.
Field removal is now only permitted by using the sentinel value None.
The docs have been slightly reworded to refer to removal of fields
rather than shadowing.
Thanks to gcbirzan for the report and initial patch, and several of the
core team for opinions.
2014-05-24 13:10:50 +01:00
Claude Paroz
756c390fb5
Fixed #20816 -- Added hints about Django middleware ordering
...
Thanks gthb Trac user for the report, kolypto StackOverflow
user for the initial list and Tim Graham for the review.
2014-05-22 18:33:10 +02:00
Flavio Curella
beec05686c
Fixed #22667 -- Replaced leader/follower terminology with primary/replica
2014-05-22 11:59:17 -04:00
Marc Tamlyn
48348782e6
Added omitted documentation for ArrayField__len.
2014-05-22 13:50:13 +01:00
Marc Tamlyn
604162604b
Added array field support for PostgreSQL.
...
The first part of django.contrib.postgres, including model and two form
fields for arrays of other data types.
This commit is formed of the following work:
Add shell of postgres app and test handling.
First draft of array fields.
Use recursive deconstruction.
Stop creating classes at lookup time.
Add validation and size parameter.
Add contained_by lookup.
Add SimpleArrayField for forms.
Add SplitArrayField (mainly for admin).
Fix prepare_value for SimpleArrayField.
Stop using MultiValueField and MultiWidget.
They don't play nice with flexible sizes.
Add basics of admin integration.
Missing:
- Tests
- Fully working js
Add reference document for django.contrib.postgres.fields.ArrayField.
Various performance and style tweaks.
Fix internal docs link, formalise code snippets.
Remove the admin code for now.
It needs a better way of handing JS widgets in the admin as a whole
before it is easy to write. In particular there are serious issues
involving DateTimePicker when used in an array.
Add a test for nested array fields with different delimiters.
This will be a documented pattern so having a test for it is useful.
Add docs for SimpleArrayField.
Add docs for SplitArrayField.
Remove admin related code for now.
definition -> description
Fix typo.
Py3 errors.
Avoid using regexes where they're not needed.
Allow passing tuples by the programmer.
Add some more tests for multidimensional arrays.
Also fix slicing as much as it can be fixed.
Simplify SplitArrayWidget's data loading.
If we aren't including the variable size one, we don't need to search
like this.
2014-05-22 09:53:26 +01:00
Claude Paroz
d9d9242505
Used link label in models FAQ to ease translation
2014-05-22 09:46:34 +02:00
Niclas Åhdén
64ee097b3b
Fixed #22639 -- Added missing imports in docs
...
Added ModelForm and NON_FIELD_ERRORS imports.
2014-05-21 17:11:01 +02:00
Martin Brochhaus
bb0a9a070b
Fixed #20477 : Allowed list of modules for FORMAT_MODULE_PATH
...
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted
module path). A feature has been added to also allow a list of strings.
This is useful when using several reusable third party apps that define new
formats. We can now use them all and we can even override some of the formats
by providing a project-wide format module.
2014-05-21 07:35:47 -04:00
Alex Gaynor
8a95b4fca7
Merge pull request #2692 from fcurella/patch-5
...
#22667 replaced occurrences of master/slave terminology with leader/follower
2014-05-20 09:37:04 -07:00
Flavio Curella
73a57b06f9
replaced occurrences of master/slave terminology with leader/follower
2014-05-20 11:35:16 -05:00
Erik Romijn
ba5ddf7aed
Fixed #22638 -- Changed CookieWizardView to ignore invalid cookies
2014-05-19 19:16:45 +02:00
Moayad Mardini
2f43229c2f
Fixed #22655 -- Fixed GeoQuerySet doc about strictly_below
...
The paragraph was a copy of strictly_above.
2014-05-19 09:50:23 -04:00
Tim Graham
5abc811a40
Revert "Fixed #20477 : Allowed settings.FORMAT_MODULE_PATH to be a list of modules."
...
This reverts commit 950b6de16a
.
2014-05-19 08:22:46 -04:00
Martin Brochhaus
950b6de16a
Fixed #20477 : Allowed settings.FORMAT_MODULE_PATH to be a list of modules.
...
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted
module path).
This is useful when using several reusable third party apps that define new
formats. We can now use them all and we can even override some of the formats
by providing a project-wide format module.
2014-05-19 07:59:13 -04:00
Moayad Mardini
bfac6bef83
Fixed #22368 -- clarified connecting to Oracle DB using service name
...
Used the official terminology listed in
http://docs.oracle.com/cd/B19306_01/network.102/b14212/glossary.htm#i997309
Thanks michael.cherkasov for the report.
2014-05-19 07:42:11 -04:00
Esau Rodriguez
ec9043ab2f
Fixed #21799 - Modified loaddata --ignorenonexistent to ignore models.
2014-05-18 15:52:07 -04:00
Víðir Valberg Guðmundsson
268670a3a4
Fixed #22647 -- Documented redirect_field_name keyword argument for user_passes_test.
2014-05-17 09:45:15 -04:00
Erik Romijn
727d048f09
Fixed #22644 -- Clarified documentation for NamedUrlWizardView
2014-05-17 15:08:49 +02:00
Aliaksandr Semianiuk
5b185ecc68
Fixed #22019 -- Added Model.objects reference documentation.
2014-05-17 08:32:05 -04:00
Florian Apolloner
11932e978f
Merge pull request #2346 from Markush2010/ticket21905
...
Fixed #21905 -- Add info message if DateField or TimeField use a fixed value
2014-05-17 12:09:04 +02:00
Unai Zalakain
ebb0279f4a
Fixed #16245 -- Included traceback in send_robust()'s response
...
Exceptions from the (receiver, exception) tuples returned by
``send_robust()`` now have always their traceback attached as their
``__traceback__`` argument.
2014-05-16 18:41:40 -04:00
Tim Graham
79e9da3d1e
Added stub release notes for 1.6.6.
2014-05-16 18:19:23 -04:00
Markus Holtermann
9d8c73f6a1
Fixed #21905 -- Add info message if DateField or TimeField use a fixed value
2014-05-16 18:59:31 +02:00
Jorge C. Leitão
2e364a0aac
Fixed #15716 - Authentication backends can short-circuit authorization.
...
Authorization backends can now raise PermissionDenied in "has_perm"
and "has_module_perms" to short-circuit authorization process.
2014-05-16 12:57:38 -04:00
Moritz
e7ffba8f78
Fixed #22167 -- Improved documentation on context processors
...
Clarified the explanation on the order in which user provided variables
to render_to_response, RequestContext and context processors are
loaded.
2014-05-16 18:26:37 +02:00
Niclas Åhdén
7271f5db78
Fixed #22622 -- Added ugettext_lazy import in docs
2014-05-16 11:20:31 -04:00
Russell Keith-Magee
2c176eb95c
Refs #21798 - Modified error number to provide room for future expansion.
2014-05-16 15:41:17 +02:00
Marc Tamlyn
cebd8753c6
Remove old compatibility shims from d.c.gis.
2014-05-16 12:11:35 +02:00
Daniel Pyrathon
cb15231888
Fixed #21798 -- Added check for DateTime mutually exclusive options
...
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-16 05:57:19 -04:00
Erik Romijn
257fd48004
Simplified an unnecessarily complex paragraph in view docs
2014-05-16 11:21:56 +02:00
Claude Paroz
e520a73eee
Harmonized some PEP 0263 coding preambles
2014-05-15 19:58:41 +02:00
Anders Steinlein
4ef10f245a
Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.
...
Thanks Stephen Burrows for work on the patch as well.
Forwardport of 2914f66983
from stable/1.7.x
2014-05-15 07:25:35 -04:00
Tim Graham
860d31ac7a
Minor edits to latest release notes.
2014-05-15 07:16:25 -04:00
Éric Araujo
5ab95168cc
Fix typo that disabled code example highlighting
2014-05-14 18:34:59 -04:00
Jacob Kaplan-Moss
d4069a0a0d
Added release notes for 1.4.13, 1.5.8, 1.6.5.
2014-05-14 18:59:15 +02:00
Tim Graham
a06808d370
Removed an unnecessary anchor in the docs.
2014-05-13 20:54:32 -04:00
Tim Graham
1165e9992e
Fixed spelling mistake and added a word to the word list.
2014-05-13 09:17:04 -04:00
Julen Ruiz Aizpuru
5eb81ce445
Fixed #22533 -- Added label_suffix parameter to form fields.
...
Fields can now receive the `label_suffix` attribute, which will override
a form's `label_suffix`.
This enhances the possibility to customize form's `label_suffix`, allowing
to use such customizations while using shortcuts such as
`{{ form.as_p }}`.
Note that the field's own customization can be overridden at runtime by
using the `label_prefix` parameter to `BoundField.label_tag()`.
Refs #18134 .
2014-05-13 09:09:33 -04:00
Haris Ibrahim K. V
f2a8e47cfd
Fixed typo in transactions.txt
2014-05-13 07:27:33 -04:00
Tim Graham
57296b4162
Removed some references to django.contrib.comments which has been removed.
2014-05-13 07:24:28 -04:00
Tim Graham
c501662f3c
Fixed #22618 -- Improved import_string example.
...
Thanks ewjoachim for the sugggestion.
2014-05-13 07:04:49 -04:00
Tim Graham
a1be7237ca
Fixed #22619 -- Corrected description of os.path.
...
Thanks Collin Anderson for the report.
2014-05-12 18:56:34 -04:00
Tim Graham
13087020a9
Added 1.6.5 release note for refs #22508 .
2014-05-12 12:44:21 -04:00
Tim Graham
986bd41f8a
Fixed #22613 -- Added formfield_for_choice_field() to the list of methods that InlineModelAdmin supports.
2014-05-12 06:59:23 -04:00
Ramiro Morales
a9b7f31bfc
Completed long overdue sqlinitialdata deprecation.
2014-05-11 23:15:59 -03:00
Matt Robenolt
393c0e2422
Fixed #20936 -- When logging out/ending a session, don't create a new, empty session.
...
Previously, when logging out, the existing session was overwritten by a
new sessionid instead of deleting the session altogether.
This behavior added overhead by creating a new session record in
whichever backend was in use: db, cache, etc.
This extra session is unnecessary at the time since no session data is
meant to be preserved when explicitly logging out.
2014-05-11 21:42:26 -03:00
Ramiro Morales
63df886df7
Link new testing tools document from main index.
2014-05-10 23:28:15 -03:00
Ramiro Morales
38036e16c8
Fixed a few release notes typos.
2014-05-10 23:13:50 -03:00
Alex Gaynor
b57ee15b12
Merge pull request #2639 from alimony/patch-1
...
Insert space
2014-05-07 16:43:57 -07:00
Andrew Godwin
5a917cfef3
Fixed #22496 : Data migrations get transactions again!
2014-05-07 14:28:34 -07:00
Markus Amalthea Magnuson
8eb51a8cf6
Insert space.
2014-05-07 21:16:43 +02:00
Tim Graham
a2e3c96948
Updated some docs for the delayed deprecation of legacy table creation; refs #22340 .
2014-05-07 09:04:01 -04:00
Tim Graham
541310023d
Forward ported docs of security issues from df81625da6
.
2014-05-07 08:21:54 -04:00
Andrew Godwin
827d5dc189
Improve docs around deconstruction/serialisation (refs #22337 )
2014-05-06 23:06:41 -07:00
Andrew Godwin
61da5f3f02
Bump DatabaseCreation deprecation to 2.0 (refs #22340 )
2014-05-06 22:14:15 -07:00
Claude Paroz
7951f125e7
Updated the messages context processor docs
...
Refs #20610 .
2014-05-06 20:37:52 +02:00
Tom
6923fdbbf1
Reordered tutorial 1 so that the database is configured first.
...
This change is required after the introduction of
SessionAuthenticationMiddleware to the default middleware
2014-05-05 13:34:46 -04:00
Tim Graham
fb7c347f7b
Fixed #1349 -- Clarified docs on serving files from STATIC/MEDIA_URL.
2014-05-05 07:36:53 -04:00
Tim Graham
87776859af
Fixed #22575 -- Fixed typo in docs/topics/class-based-views/generic-editing.txt.
...
Thanks adminq80 at gmail.com.
2014-05-05 06:41:01 -04:00
Anssi Kääriäinen
5e1f4656b9
Fixed #22429 -- Incorrect SQL when using ~Q and F
2014-05-05 13:02:11 +03:00
Andrew Godwin
13ec89f267
Fix docs error with deconstruct() docs
2014-05-03 16:18:26 -07:00
Claude Paroz
142c27218a
Fixed #22565 -- Prevented pgettext_lazy crash with bytestring input
...
Thanks ygbo for the report.
2014-05-02 19:33:22 +02:00
Loic Bistuer
d1799233f4
Fixed clash caused by the newly introduced -e shorthand for makemessages --exclude.
...
This fixes a regression caused by 0707b82
. Refs #22328 .
2014-05-02 23:07:17 +07:00
Brenda J. Butler
c8d257e81d
Fixed #22558 -- Added missing word in contributing docs
2014-05-02 08:28:07 +02:00
Claude Paroz
2ce5196763
Fixed #22551 -- Made oracle backend method Python 3 compatible
...
Thanks fatal10110 at gmail.com for the report. The fix is 1.6-only
because that code has been refactored in 1.7 (6983201cfb
).
'Docs-only' forward port of 120a98120
from 1.6.x.
2014-05-01 18:20:47 +02:00
Tim Graham
b0d032f9fc
Fixed #22547 -- Added some links to tutorial 2.
...
Thanks bjb at sourcer.ca for the suggestion.
2014-04-30 18:22:43 -04:00
Moayad Mardini
927245ccd8
Fixed #22546 -- Removed idioms in tutorial 2.
...
Thanks bjb at sourcerer.ca for the suggestion.
2014-04-30 18:01:35 -04:00
Simon Charette
24ec9538b7
Fixed #19195 -- Allow explicit ordering by a relation `_id` field.
...
Thanks to chrisedgemon for the report and shaib, akaariai and
timgraham for the review.
2014-04-30 14:23:19 -04:00
Mike Fogel
7fd1b35ed7
Fixed #22537 -- Add tests and improved docs for field subclass with choices.
2014-04-30 07:56:52 -04:00
Tim Graham
8ec388a69d
Fixed #22442 -- Provided additional documentation regarding id fields clashing.
...
Thanks benjaoming for raising the issue and Loic for the examples.
2014-04-30 07:36:12 -04:00
Aymeric Augustin
0fb7570c5c
Fixed #22523 -- Clarified pytz requirement.
...
Thanks z for the report and timo for the proposal.
2014-04-29 08:33:15 +02:00
Tim Graham
650065f0ef
Added stub release notes for 1.6.5.
2014-04-28 20:38:06 -04:00
Tim Graham
68d264059a
Added dates to release notes of today's release.
2014-04-28 19:06:25 -04:00
Tim Graham
aabceadd7d
Revert "Fixed #15179 -- middlewares not applied for test client login()"
...
This reverts commit 4fdd51b732
.
See the ticket for concerns with this implementation; it will be revisited.
2014-04-28 18:41:36 -04:00
Tim Graham
26b03f2526
Fixed #22254 -- Noted the requirement of calling django.setup() when running
...
Thanks Peter Landry for the report.
2014-04-28 12:43:33 -04:00
Zhaorong Ma
dd3f3e4e89
Fix a typo in logging.txt
2014-04-28 10:05:28 -04:00
Tim Graham
b829d53b37
Fixed #22497 -- Highlighted difference between field and class deconstruction.
...
Thanks nliberg for the suggestion.
2014-04-28 08:18:43 -04:00
Tim Graham
1ce759b69f
Fixed #22445 -- Added how to perform a reverse data migration to topic guide.
...
Thanks Karen Tracey for the report.
2014-04-27 15:19:54 -04:00
Tim Graham
ab8d8e00c9
Improved formatting and links of migration docs.
2014-04-27 15:05:41 -04:00
Tim Graham
8905fcbda6
Fixed #22526 -- Added note about check() method to 1.7 release notes.
...
Thanks kevin-brown for the report.
2014-04-27 14:17:37 -04:00
Aymeric Augustin
58ed387db3
Documented django.setup().
...
Thanks Eric Holscher and Tim Graham for the review.
2014-04-26 20:13:59 +02:00
Aymeric Augustin
8b5b199e20
Fixed #3214 -- Stopped parsing SQL with regex.
...
Avoided introducing a new regex-based SQL splitter in the migrations
framework, before we're bound by backwards compatibility.
Adapted this change to the legacy "initial SQL data" feature, even
though it's already deprecated, in order to facilitate the transition
to migrations.
sqlparse becomes mandatory for RunSQL on some databases (all but
PostgreSQL). There's no API to provide a single statement and tell
Django not to attempt splitting. Since we have a more robust splitting
implementation, that seems like a good tradeoff. It's easier to add a
new keyword argument later if necessary than to remove one.
Many people contributed to both tickets, thank you all, and especially
Claude for the review.
Refs #22401 .
2014-04-26 17:46:23 +02:00
Claude Paroz
2128b3a688
Specified 'csv and unicode' note as Python 2 only
2014-04-26 16:09:19 +02:00
Claude Paroz
680a0f08b1
Updated doc links to point to Python 3 documentation
2014-04-26 16:02:53 +02:00
Ana Krivokapic
0707b824fe
Fixed #22328 -- Added --exclude option to compilemessages and makemessages.
2014-04-26 17:07:44 +07:00
Claude Paroz
d1f93e9c1e
Fixed #22507 -- Clarified nature of the sender argument of signals
2014-04-25 23:15:47 +02:00
Ben Davis
5c0333de2e
Fixed #22517 , "view prefix" still referenced in urlconf docs
2014-04-25 12:29:33 -05:00
Aymeric Augustin
0315f01087
Fixed a confusing heading in applications docs.
...
Refs #22422 .
2014-04-25 17:39:49 +02:00
Tim Graham
f65eb15ac6
Fixed #22504 -- Corrected domain terminology in security guide.
...
Thanks chris at chrullrich.net.
2014-04-25 10:27:13 -04:00
Víðir Valberg Guðmundsson
deb561bbe2
Fixed #22422 -- Moved information about the application loading process to refs/applications.txt.
2014-04-25 10:12:31 -04:00
Moayad Mardini
3776926cfe
Fixed #22493 - Added warnings to raw() and extra() docs about SQL injection
...
Thanks Erik Romijn for the suggestion.
2014-04-25 09:54:49 -04:00
Tim Graham
9e7f86b890
Fixed #22515 -- Fixed the object_id of the LogEntry that's created after a user password change in the admin.
...
Thanks ross at servercode.co.uk for the report.
2014-04-25 08:20:25 -04:00
Claude Paroz
7c24027bad
Renamed Transifex project from django-core to django
...
See also http://blog.transifex.com/post/83622601443/new-teams-management-transifex
2014-04-24 11:38:18 +02:00
Preston Timmons
3c06b2f2a3
Fixed #22486 -- Restored the ability to reverse views created using functools.partial.
...
Regression in 8b93b31487
.
Thanks rcoup for the report.
2014-04-23 07:27:52 -04:00
Marti Raudsepp
11d453bcad
Various documentation typo/spelling fixes
...
Errors detected by Topy (https://github.com/intgr/topy ), all changes
verified by hand.
2014-04-23 02:31:49 +03:00
Ray Ashman
9853779805
Updated grammar in description of django.contrib.auth.
2014-04-22 18:28:47 -04:00
Tim Graham
9fb95dfc9f
Added 1.6.4 release note stub.
2014-04-22 11:44:03 -04:00
Erik Romijn
c07f3e60c2
Added information on resolved security issues to release notes.
2014-04-21 18:11:26 -04:00
Erik Romijn
75c0d4ea3a
Fixed queries that may return unexpected results on MySQL due to typecasting.
...
This is a security fix; disclosure to follow shortly.
2014-04-21 18:11:26 -04:00
Matt Lauber
b2514c02e1
Corrected the section identifier for MySQL unicode reference.
2014-04-21 13:19:46 -04:00
Aymeric Augustin
bbe818b23c
Changed paths in docs that referred to Python 2.
2014-04-20 08:34:01 +02:00
Tim Graham
1b3a3fc1e4
Fixed #22417 -- Added additional documentation for refs #16969 .
...
Thanks Jon Foster for the report.
2014-04-19 21:39:08 -04:00
Tim Graham
26d118c3fe
Moved RemoteUserBackend documentation to reference guide.
2014-04-18 16:06:26 -04:00
Moayad Mardini
11ac50b18e
Fixed #22458 -- Added a note about MySQL utf8_unicode_ci collation
...
Thanks tobami at gmail.com for the report.
2014-04-18 15:10:21 -04:00
Tim Graham
b43bbd6d39
Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save().
2014-04-18 15:00:26 -04:00
Tim Graham
6b2ce38c49
Fixed #22472 -- Clarified meaning of dots in tutorial 4 code block.
2014-04-18 12:10:46 -04:00
Tim Graham
c2b269df6e
Added some missing items to the 1.6.3 release notes.
2014-04-18 10:32:14 -04:00
Erik Romijn
54d5c37de6
Fixed #22471 -- Corrected misprint in i18n docs
...
Thanks to aruseni for the report.
2014-04-18 15:05:18 +02:00
Tim Graham
dc7bc42cce
Added missing versionadded annotation and tweaked release note; refs #22465 .
2014-04-18 07:18:15 -04:00
amatellanes
8394e570ba
Fixed #22465 -- New assertion assertJSONNotEqual
2014-04-18 15:11:08 +07:00
Tim Graham
a4acb80463
Fixed #22444 -- Marked initial SQL/fixture loading as deprecated.
...
Thanks Karen Tracey for the report.
2014-04-17 20:36:52 -04:00