Commit Graph

18907 Commits

Author SHA1 Message Date
Tim Graham bedd439297 Fixed #23667 -- Incorrect settings reference for language cookie.
Thanks jamesbeith for the report.
2014-10-16 19:41:15 -04:00
Rigel Di Scala a5c77417a6 Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.
The "check" name is a reserved word used by Django's check framework,
and cannot be redefined as something else other than a method, or the check
framework will raise an error.

This change amends the django.core.checks.model_check.check_all_models()
function, so that it verifies that a model instance's attribute "check"
is actually a method. This new check is assigned the id "models.E020".
2014-10-16 23:49:21 +07:00
Loic Bistuer 157f9cf240 Minor cleanup in the check_framework test package. 2014-10-16 23:49:21 +07:00
mcgeeco 80b8d3bee0 Fixed #12008 -- Clarified relationship between template blocks and includes.
Thanks Daniele Procida for suggested wording.
2014-10-16 10:53:17 -04:00
Berker Peksag 303a848631 Fixed IRC channel name in submitting-patches.txt.
The development channel is #django-dev.
2014-10-16 16:56:37 +03:00
Thomas Chaumeny b962653060 Fixed #23664 -- Provided a consistent definition for OrderedSet.__bool__
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
2014-10-16 14:16:24 +02:00
Claude Paroz 2e5b2c612e Fixed #23579 -- Changed GEOSGeometry.__str__ to include the SRID
Thanks Tim Graham for the review.
2014-10-16 09:30:37 +02:00
Claude Paroz 374c14b7fd Fixed #23659 -- Kept annotate() args ordering
Thanks Loic Bistuer and Simon Charette for the review.
2014-10-16 09:27:20 +02:00
Ian Lee 947af46db3 Fixed pep8 in docs/topics/logging.txt 2014-10-15 18:54:15 -04:00
Simon Charette f6c208d95c Fixed a flake8 warning. 2014-10-15 16:36:11 -04:00
Collin Anderson a6a8268d19 Fixed #23660 -- Moved sort_dependencies to core. 2014-10-16 03:04:13 +07:00
Loic Bistuer 1e3bfcaf12 Merge pull request #3373 from Bashar/patch-1
Added Bashar Al-Abdulhadi to AUTHORS
2014-10-16 02:39:38 +07:00
Anubhav Joshi 10b17a22be Fixed #19508 -- Implemented uri_to_iri as per RFC.
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz
for the review.
2014-10-16 02:31:17 +07:00
Bashar Al-Abdulhadi db7b393aff Added Bashar Al-Abdulhadi to AUTHORS
made django 100% arabized https://www.transifex.com/projects/p/django/language/ar/ , https://twitter.com/_Bashar/status/468845303668695040
2014-10-15 22:20:08 +03:00
Florian Apolloner 3af5af1a61 Fixed remaining test failure in jslex tests. 2014-10-15 17:36:19 +02:00
Florian Apolloner 2ccbaba1f2 Added unicode_literals to the jslexer.
This ensure that ''.join(c) in jslex.py always returns text.
2014-10-15 15:09:35 +02:00
Loic Bistuer 4443c6f6d8 Merge pull request #3370 from collinanderson/ticket_23637
Fixed #23637 -- Removed TUX, lighttpd, and Cherokee as common.
2014-10-15 20:02:45 +07:00
Collin Anderson 1b2debe896 Fixed #23637 -- Removed TUX, lighttpd, and Cherokee as common. 2014-10-15 08:28:27 -04:00
Claude Paroz 7a893ee771 Fixed #23651 -- Isolated non-existent fixture tests
Previous versions of the tests were buggy, as initial_data.json
did exist and the test wasn't failing. It was finally failing on
Python 3.4.2.
Thanks Raphaël Hertzog for the report (and Debian bug #765117
contributors).
2014-10-15 09:17:44 +02:00
Greg Chapple 9743aa5436 Clarified documentation relating to usage of serialized_rollback for certain classes 2014-10-14 17:13:37 +01:00
Claude Paroz 7131efa154 Adapted invalid cookie test to all Python versions
Refs #23638. Older Python versions are less strict when parsing
invalid cookie content. The test just has to ensure Django doesn't
crash.
2014-10-14 09:30:26 +02:00
Nadja Deininger 905a9a263b Fixed #23534 -- Added documentation on blocktrans tags
Mentioned that other block tags are not allowed inside
a blocktrans template tag.

Thanks to edu2004eu for reporting the issue.
2014-10-13 16:52:09 +01:00
Claude Paroz 59d487e7fc Fixed #23638 -- Prevented crash while parsing invalid cookie content
Thanks Philip Gatt for the report and Tim Graham for the review.
2014-10-13 17:37:58 +02:00
Tom Dyson 8701b59007 Cleaned up the Memcached cache backend doc
Consistent casing, minor typo fixes, reduced rhetoric.
2014-10-13 12:19:05 +01:00
Florian Apolloner 8d789449c7 Fixed #23063 -- Convert \n and \r to \r\n when using the SMTP backend as per RFC. 2014-10-12 22:01:24 +02:00
Thomas Chaumeny 6448dd8335 Fixed #23642 -- Made LocMemCache.incr() thread-safe as documented 2014-10-12 23:47:48 +07:00
Dori c48a29a02a Fixed #23639 -- Fixed doc error in RegexValidator.regex
Thanks to @claudep for the report and the original patch.
2014-10-12 12:59:26 +01:00
Claude Paroz bc46e4d4fa Fixed two more tuple/int comparisons in gis tests
Refs 63ff417746.
2014-10-11 17:14:29 +02:00
Claude Paroz 63ff417746 Fixed a tuple/int comparison in spatialite backend
On Python 3, comparing tuple with int raises a TypeError.
2014-10-11 16:56:48 +02:00
Curtis c6ea678c2e Added my bio to team docs. 2014-10-11 07:44:50 -04:00
Tim Graham 9db3653670 Fixed #23631 -- Removed outdated note on MySQL timezone support.
Thanks marfire for the report.
2014-10-10 15:18:54 -04:00
Konrad Świat 06b11b617e Fixed #23616 - Fixed generic relations in ModelAdmin.list_filter.
Thanks ranjur for reporting bug, timgraham for review,
and collinanderson for contributing tips.
2014-10-10 12:10:32 -04:00
Jaap Roes 466b38ea3d Added Jaap Roes to AUTHORS 2014-10-10 10:04:32 -04:00
Thomas Chaumeny fa534b92dd Fixed #23623 -- Reduced memory consumption when generating ModelChoiceField choices 2014-10-10 09:50:02 -04:00
Jaap Roes 115c307184 Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
Jaap Roes 1b5918f160 Fixed #23625 -- Removed CacheClass shim 2014-10-10 08:43:26 -04:00
Batiste Bieler 322cbe0db7 Updated my AUTHORS entry. 2014-10-10 08:00:44 -04:00
Claude Paroz 65c1a37490 Converted GIS lookups for Oracle 2014-10-09 21:38:50 +02:00
Claude Paroz 2bd1bbc424 Converted GIS lookups to use the new Lookup API
Thanks Tim Graham, Anssi Kääriäinen and Marc Tamlyn for the
reviews.
2014-10-09 21:38:50 +02:00
Collin Anderson 4ef9618e12 Avoided requiring sqlparse for a test.
Refs #23426. Thanks Markus Holtermann for the suggestion.
2014-10-09 14:59:33 -04:00
Brandon Taylor 16ed35fafc Fixed #23612 -- Normalized fixuture paths to allow referencing relative paths on Windows. 2014-10-09 14:58:20 -04:00
Marc Tamlyn 92a17eaae0 Fixed #23627 -- Allowed register_lookup to work as a decorator. 2014-10-09 18:44:58 +01:00
Collin Anderson d6a87eefd8 Skip another test if sqlparse is not available
Refs #23426
2014-10-09 11:54:42 -04:00
Loic Bistuer bf1bb07bf0 Updated release notes following backport of a407b84. Refs #23365. 2014-10-09 22:48:27 +07:00
Markus Holtermann f633ba778d Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column into a NOT NULL one due to existing rows
Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
2014-10-09 21:32:06 +07:00
Collin Anderson 15d350fbce Updated my bio.
This better reflects why I was invited to the team.
2014-10-09 08:45:19 -04:00
Tim Graham 30b44cea38 Fixed flake8 warning. 2014-10-08 18:10:50 -04:00
Duncan Parkes 88b6cf4ae4 Fixed #23600 -- Made default_storage aware of more settings changes.
Added MEDIA_URL, FILE_UPLOAD_PERMISSIONS, and
FILE_UPLOAD_DIRECTORY_PERMISSIONS to the list of settings.
2014-10-08 18:10:47 -04:00
Tim Graham 0af4ddabf4 Fixed typos in comments. 2014-10-08 15:59:19 -04:00
Artem Rizhov ca61195827 Fixed #23555 -- Avoided suppressing IndexError in QuerySet.first() and .last() 2014-10-08 14:28:38 -04:00