| Age | Commit message (Collapse) | Author |
|
These classes already have an identical __unicode__ method, which
will be used after an upcoming refactoring.
|
|
reraise with second argument to None is not supported.
|
|
|
|
|
|
|
|
|
|
See PEP 3114. `next` is retained as an alias for Python 2.
|
|
|
|
The six addition has been borrowed from:
https://bitbucket.org/gutworth/six/changeset/733ef740
|
|
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.
|
|
|
|
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
|
|
|
|
* 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.
|
|
|
|
This is a useful trick when Python 2 awaits byte strings and
Python 3 Unicode (regular) strings.
|
|
|
|
The & symbols which can come up in the secret key were
being escaped to &.
|
|
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.
|
|
xrange/range will be dealt with in a separate commit due to the huge
number of changes.
|
|
Lots of functions were moved. Use explicit imports in all cases
to keey it easy to identify where the functions come from.
|
|
|
|
|
|
django.utils.unittest.* weren't touched -- they're only imported on Python 2.6.
|
|
|
|
for the tip.
|
|
|
|
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.
|
|
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.
|
|
Thanks Niels Busch for the initial patch.
|
|
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
|
|
|
|
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
|
|
|
|
This is Ian Kelly's patch from #15580 with minor modifications.
|
|
Thanks fourga38 for the report and hirokiky at gmail.com for the
initial patch.
|
|
Thanks aldaran for the patch.
|
|
|
|
This is also more Python 3 compatible, as the json module in
Python 3 is expecting text. Thanks Vinay Sajip for noticing it.
|
|
Thanks jpaugh64 for the report.
|
|
Thanks mehta.apurva at gmail.com for the report and the initial patch
and neaf for the complete patch.
|
|
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
|
|
|
|
|
|
Thanks msiedlarek, jpaugh64 and vlinhart!
|
|
Implemented this by adding a stealth table_name_filter option for the
command.
|
|
gzip.GzipFile does not support files with mode set to None.
|
|
Raising CommandError whenever a management command meets an error
condition is the standard way to handle errors in commands.
|
|
Moved sys.exit(1) so as failing management commands reach it
only when running from command line.
|
|
|