summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2013-11-11Fixed #21420 once more.Aymeric Augustin
2013-11-11Fixed #21388 -- Corrected language code for FrisianBouke Haarsma
2013-11-11Fixed #20990 -- Ensured unicode paths in compilemessagesClaude Paroz
Thanks Gregoire Astruc for the report and furins for the review.
2013-11-11Fixed #9523 -- Restart runserver after compiling apps translationsBouke Haarsma
Django also uses locales provided by apps, which also might change. Also when i18n is disabled, there is no need for watching translation files.
2013-11-11Fixed #21420 -- Autoreloader on BSD with Python 3.Aymeric Augustin
Thanks Bouke Haarsma for the report.
2013-11-11Fix syntax error under Python 3.2.Aymeric Augustin
2013-11-11Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma
Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
2013-11-09Fixed #14800 -- Suppressed WSGIRequestHandler message filteringClaude Paroz
Filtering out static file requests in runserver has been judged arbitrary and can hide some debugging-related activity. Thanks Roy Smith for the report and Aymeric Augustin for the review.
2013-11-09Fixed spelling of compatibility.Tim Graham
2013-11-09Fixed #21398 -- Fixed BCryptSHA256PasswordHasher with py-bcrypt and Python 3.Tim Graham
Thanks arjan at anymore.nl for the report.
2013-11-09flake8 fixAlex Gaynor
2013-11-09Fixed #21383 -- Added request details in SuspiciousOperation messagesClaude Paroz
2013-11-09Don't initialize PostGIS-specific stuff for non-db connectionsClaude Paroz
Refs #16969.
2013-11-09Removed useless comment. Refs #21172Anssi Kääriäinen
2013-11-09Fixed #16969 -- Don't connect to named database when possibleClaude Paroz
Thanks Andreas Pelme for the report and initial patch, and Aymeric Augustin, Shai Berger and Tim Graham for the reviews.
2013-11-09Merge pull request #1743 from unaizalakain/ticket_21172Anssi Kääriäinen
Fixed #21172 -- have LiveServerThread follow the semantics of threading.Thread.join()
2013-11-08Fixed a typo in admindocs templateClaude Paroz
Thanks Reza Mohammadi for the report.
2013-11-08Fixed #17529 -- get_template_from_string default arguments breakUnai Zalakain
``get_template_from_string`` default arguments were breaking ``assertTemplateUsed``. The solution has been to return only the names of the templates with a ``name`` attribute distinct of ``None``. The default ``name`` kwarg of ``Template`` has been changed to ``None``, more pythonic than ``'<Unknown Template>'``.
2013-11-08Fixed #13970 -- Made SelectDateWidget use the standard widget is_required ↵Claude Paroz
attribute Thanks mitar for the report and Tim Graham for the review.
2013-11-07Fixed a couple flake8 warnings.Tim Graham
2013-11-08Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma
Add the trimmed option to the blocktrans tag to trim any newlines and whitespace from its content. This allows the developer to indent the blocktrans tag without adding new lines and whitespace to the msgid in the PO file. Thanks to mpessas for the initial patch and Dmitri Fedortchenko for the report.
2013-11-07Merge pull request #1850 from unaizalakain/ticket_13725Anssi Kääriäinen
Fixed #13725 -- take url scheme into account in assertRedirects Thanks to Loic for review.
2013-11-07Fixed #13725 -- take url scheme into account in assertRedirectsUnai Zalakain
Scheme is handled correctly when making comparisons between two URLs. If there isn't any scheme specified in the location where we are redirected to, the original request's scheme is used. If present, the scheme in ``expected_url`` is the one used to make the comparations to.
2013-11-07Fixed #20536 -- rewrite of the file based cache backendJaap Roes
* Safer for use in multiprocess environments * Better random culling * Cache files use less disk space * Safer delete behavior Also fixed #15806, fixed #15825.
2013-11-07Fixed #17001 -- Custom querysets for prefetch_related.Loic Bistuer
This patch introduces the Prefetch object which allows customizing prefetch operations. This enables things like filtering prefetched relations, calling select_related from a prefetched relation, or prefetching the same relation multiple times with different querysets. When a Prefetch instance specifies a to_attr argument, the result is stored in a list rather than a QuerySet. This has the fortunate consequence of being significantly faster. The preformance improvement is due to the fact that we save the costly creation of a QuerySet instance. Thanks @akaariai for the original patch and @bmispelon and @timgraham for the reviews.
2013-11-07Fixed #20600 -- ordered distinct(*fields) in subqueriesAnssi Kääriäinen
2013-11-07Removed non-necessary code in Compiler._setup_joins()Anssi Kääriäinen
2013-11-07Removed Query.setup_joins() and join() argument outer_if_first.Anssi Kääriäinen
Instead always create new joins as OUTER.
2013-11-07Fixed #21376 -- New implementation for query join promotion logicAnssi Kääriäinen
This commit introduced a new class JoinPromoter that can be used to abstract away join promotion problems for complex filter conditions. Query._add_q() and Query.combine() now use the new class. Also, added a lot of comments about why join promotion is done the way it is. Thanks to Tim Graham for original report and testing the changes, and for Loic Bistuer for review.
2013-11-06flake8 fixesAlex Gaynor
2013-11-06Allow squashing of squashed migrationsAndrew Godwin
2013-11-06Massive migration optimiser improvements + RenameModel opnAndrew Godwin
2013-11-06Distinguish between browser-deprecated locales and internallyBaptiste Mispelon
deprecated ones. Thanks to bouke for pointing this out.
2013-11-06Fixed #21387 -- Merge two very similar help texts.Ramiro Morales
2013-11-05Fix python2 breakage caused by e5e044da87800feb6ef63fef1765d8c05022d926.Baptiste Mispelon
2013-11-05Fixed #18419 -- Full backwards compatibility for old language codesBouke Haarsma
Improved documentation about zh-* deprecation and upgrade path. Thanks to Baptiste Mispelon for the code reviews.
2013-11-05Flake8 fixesAlex Gaynor
2013-11-04Fixed python3 breakage introduced by c0a2388a1c4ead1afaec98e4ebc953a772ca3849.Baptiste Mispelon
2013-11-04Fixed #18149 -- Changed language codes for ChineseBouke Haarsma
Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional). Added support for browsers that still send the deprecated language codes. Thanks to Olli Wang for the report.
2013-11-04Merge pull request #1821 from Bouke/tickets/14170Aymeric Augustin
#14170 -- Reset i18n cache when settings changed
2013-11-04Updated the set of watched files after each request.Aymeric Augustin
Otherwise the kqueue-based autoreloader may not see changes to files that weren't imported when the server started. Thanks Bouke Haarsma for the report and Loïc Bistuer for locating the problem.
2013-11-04Simplify (and very very slightly speed up) the pbkdf2 implementationAlex Gaynor
2013-11-04Fixed ticket #21172Unai Zalakain
LiveServerThread.join() now behaves like threading.Thread.join(). LiveServerThread.terminate() is instead used to ask live http server to terminate and close.
2013-11-03Fixed #21322 -- Error message when CSRF cookie is missingBouke Haarsma
Thanks to Henrik Levkowetz and olau for their reports and initial patches.
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-03Merge pull request #1852 from jasonamyers/cleanup/PEP8Alex Gaynor
Cleanup/pep8 tests
2013-11-03Merge pull request #1861 from milmazz/E251Alex Gaynor
Fixed flake8 E251 violations
2013-11-03Merging in masterJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-03Fixed regressions from 36ded01527b690b5df0574492af9cfcc2ea3d1dc.Florian Apolloner
Refs #21302
2013-11-03Fixed #20849 -- ModelForms do not work well with prefetch_related.Jim Bailey
model_to_dict() (used when rendering forms) queries the database to get the list of primary keys for ManyToMany fields. This is unnecessary if the field queryset has been prefetched, all the keys are already in memory and can be obtained with a simple iteration.