summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2012-08-12[py3] Removed redundant __str__ methods.Aymeric Augustin
These classes already have an identical __unicode__ method, which will be used after an upcoming refactoring.
2012-08-11[py3] Fixed reraising of exceptionsClaude Paroz
reraise with second argument to None is not supported.
2012-08-11[py3] Re-decoded string after idna encodingClaude Paroz
2012-08-11[py3] Fixed JSON deserializationClaude Paroz
2012-08-10[py3] Made signing infrastructure pass tests with Python 3Claude Paroz
2012-08-09[py3] Fixed mail tests with Python 3Claude Paroz
2012-08-09[py3] Renamed `next` to `__next__` in iterators.Aymeric Augustin
See PEP 3114. `next` is retained as an alias for Python 2.
2012-08-08[py3] Fixed compilemessages testsClaude Paroz
2012-08-08[py3] Replaced raw_input by inputClaude Paroz
The six addition has been borrowed from: https://bitbucket.org/gutworth/six/changeset/733ef740
2012-08-08[py3] Fixed 'iterable but non string' detectionClaude Paroz
In Python 3, the str type has an __iter__ attribute. Therefore, the presence of an __iter__ attribute is not sufficient to distinguish 'standard' iterables (list, tuple) from strings.
2012-08-08remove a bunch of unnescesarry iterkeys() callsAlex Gaynor
2012-08-08[py3] Replaced __nonzero__ by __bool__Claude Paroz
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-08-07[py3] Applied minor fixes so the test suite startsAymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-08-03Replaced some byte strings by str() callsClaude Paroz
This is a useful trick when Python 2 awaits byte strings and Python 3 Unicode (regular) strings.
2012-07-30Fixed a security issue in image uploading. Disclosure and release forthcoming.Florian Apolloner
2012-07-25Fixed #18634 -- Don't escape variables in the context for startproject/startapp.Marc Tamlyn
The & symbols which can come up in the secret key were being escaped to &.
2012-07-24Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.Ramiro Morales
Previously, the flush was done before the test case execution and now it is performed after it. Other changes to the testing infrastructure include: * TransactionTestCase now doesn't reset autoincrement sequences either (previous behavior can achieved by using `reset_sequences`.) With this, no implicit such reset is performed by any of the provided TestCase classes. * New ordering of test cases: All unittest tes cases are run first and doctests are run at the end. THse changes could be backward-incompatible with test cases that relied on some kind of state being preserved between tests. Please read the relevant sections of the release notes and testing documentation for further details. Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi Kääriäinen for the feedback and Anssi for reviewing. This also fixes #12408.
2012-07-22[py3] Switched to Python 3-compatible imports.Aymeric Augustin
xrange/range will be dealt with in a separate commit due to the huge number of changes.
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-22[py3] Fixed remaining Python 3 syntax errors.Aymeric Augustin
django.utils.unittest.* weren't touched -- they're only imported on Python 2.6.
2012-07-22[py3] Used six.reraise wherever necessary.Aymeric Augustin
2012-07-21Fixed an `except` statement to be Python3-compatible. Thanks to charettes ↵Julien Phalip
for the tip.
2012-07-21Removed u prefix on a unicode string.Aymeric Augustin
2012-07-21Fixed #6170 -- Ensured that a useful exception is raised when a regex is ↵Julien Phalip
invalid in the URLConf. Thanks to abrahamson.j for the report, to guettli for initial work on the patch, and to David Gouldin for the new patch and test.
2012-07-21Fixed #4680 -- Improved initial_sql parsingClaude Paroz
In particular, allow the '--' sequence to be present in string values without being interpreted as comment marker. Thanks Tim Chase for the report and shaleh for the initial patch.
2012-07-18Fixed #18479 -- Stopped makemessages raising error on gettext warningsClaude Paroz
Thanks Niels Busch for the initial patch.
2012-07-18BaseCache now has a no-op close method as per ticket #18582Mike Grouchy
Also removed the hasattr check when firing request_finished signal for caches with a 'close' method. Should be safe to call `cache.close` everywhere now
2012-07-17Fixed #18547 -- Improved error message when gettext is missingClaude Paroz
2012-07-17Adds interpreter option to shell command as per ticket #18639Mike Grouchy
Specify python interpreter interface ipython or bpython with the -i, --interface options argument. ex// python manage.py shell -i bpython ex// python manage.py shell --interface bpython Like all other options, defaults to default python interpreter when your selected choice isn't available. updated documentation where appropriate
2012-07-10Changed `manage.py shell`'s help text to reflect that it can invoke bpython.Alex Gaynor
2012-07-05Fixed #18330 - Made cache culling 3rd party db backend friendlyAnssi Kääriäinen
This is Ian Kelly's patch from #15580 with minor modifications.
2012-06-28Fixed #15197 -- Fixed yaml serialization into HttpResponseClaude Paroz
Thanks fourga38 for the report and hirokiky at gmail.com for the initial patch.
2012-06-24Fixed #16317 -- Fixed dumpdata for self-referencing models and natural keysClaude Paroz
Thanks aldaran for the patch.
2012-06-23Switch to using context managers for acquiring and releasing locks.Alex Gaynor
2012-06-15Favored text (StringIO) over binary content for deserializationClaude Paroz
This is also more Python 3 compatible, as the json module in Python 3 is expecting text. Thanks Vinay Sajip for noticing it.
2012-06-10Fixed #18457 -- Fixed encoding error in yaml deserializerClaude Paroz
Thanks jpaugh64 for the report.
2012-06-09Fixed #17159 -- Validated returned number of next|previous_page_numberClaude Paroz
Thanks mehta.apurva at gmail.com for the report and the initial patch and neaf for the complete patch.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-07Fixed #10200 -- Raised CommandError when errors happen in loaddata.Claude Paroz
2012-06-06Made TestNoInitialDataLoading pass with MySQL (Refs #15926)Claude Paroz
2012-06-05Fixed #15926 -- Added option --no-initial-data to syncdb and flush.Honza Kral
Thanks msiedlarek, jpaugh64 and vlinhart!
2012-06-01Made inspectdb tests deal with a smaller generated models.py file.Ramiro Morales
Implemented this by adding a stealth table_name_filter option for the command.
2012-05-31Fixed #14681 -- Do not set mode to None on file-like objects.Claude Paroz
gzip.GzipFile does not support files with mode set to None.
2012-05-27Used CommandError in createcachetable command.Claude Paroz
Raising CommandError whenever a management command meets an error condition is the standard way to handle errors in commands.
2012-05-27Fixed #18387 -- Do not call sys.exit during call_command.Claude Paroz
Moved sys.exit(1) so as failing management commands reach it only when running from command line.
2012-05-26Removed unneeded sys import added in previous commitClaude Paroz