summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2015-03-07Fixed #24447 -- Made migrations add FK constraints for existing columnsJean-Louis Fuchs
When altering from e.g. an IntegerField to a ForeignKey, Django didn't add a constraint.
2015-03-07Fixed #24451 -- Deprecated comma-separated {% cycle %} syntax.Tim Graham
2015-03-07Fixed #23993 -- Added form.media to the admin login template.david
2015-03-06Fixed urlize regression with entities in query stringsClaude Paroz
Refs #22267. Thanks Shai Berger for spotting the issue and Tim Graham for the initial patch.
2015-03-06Fixed #24420 -- Allowed ordering by case expressionsJosh Smeaton
2015-03-05Fixed #21495 -- Added settings.CSRF_HEADER_NAMEGrzegorz Slusarek
2015-03-05Fixed #19538 -- Removed window.__admin_media_prefix__ from admin templates.Tim Graham
2015-03-05Fixed #24428 -- Fixed has_changed for fields with coercionClaude Paroz
Thanks Carsten Fuchs for the report.
2015-03-05Fixed #24369 -- Prevented crash when flushing before db migrationClaude Paroz
Thanks Thomas Tanner for the report and Tim Graham for the review.
2015-03-04Moved definition of chunks out of timesince function.Benjamin Wohlwend
This speeds up the timesince function/filter substantially.
2015-03-04Fixed #24426 -- Displayed admin actions panel when show_full_result_count=False.Tim Graham
2015-03-04Used format_html() in contrib.admin.utils for consistency.Tim Graham
2015-03-04Fixed #24435 -- Prevented m2m field removal and addition in migrations when ↵Markus Holtermann
changing blank Thanks Mark Tranchant for the report an Tim Graham for the test and review.
2015-03-03Fixed #24399 -- Made filesystem loaders use more specific exceptions.Preston Timmons
2015-03-03Removed outdated docstring for get_admin_url().Mathias André
Since a4b8a4b632dbb6d9fed1a8654aed99a9c53560d4 the admin URL returned by get_admin_url() is no longer relative to the Django admin index page.
2015-03-02Fixed #24372 - Replaced TokenParser usage with traditional parsing.Preston Timmons
2015-03-02Fixed #24360 -- Delayed internal LocaleMiddleware variable initializationClaude Paroz
Failing in a middleware `__init__` is preventing proper debug view.
2015-03-02Fixed #24294 -- Allowed staff_member_required decorator to handle args.Andrei Kulakov
2015-03-02Fixed MySQL build failure introduced by refs #24390.Tim Graham
Added table_name back to _create_index_sql() to prevent duplicate index names on MySQL.
2015-03-02Fixed #24390 -- Made migration index names deterministic.László Károlyi
2015-03-02Used dict comprehension in URLNodeCorey Farwell
4468c08d7 replaced a lot of the old `dict()` comprehensions with the new style, but missed this one.
2015-03-02Fixed #24409 -- Combined the app_directories and filesystem loader ↵Preston Timmons
implementation. Besides the directories they look in, these two loaders are functionally the same. This removes unnecessary code duplication between the two.
2015-03-01Fixed #17401 -- Made SelectDateWidget.render reflect wrong valueClaude Paroz
Thanks Marcin Wrobel for the initial patch.
2015-02-28Simplified emit_post_migrate from flush commandClaude Paroz
Follow-up of f4f24d30e0.
2015-02-28Revert "Fixed #24369 -- Prevented crash when `flush`ing before db migration"Claude Paroz
This reverts commit 9f1dbe29c0dbae57ff7950f3f64a0d083177cca8. The proposed solution does not pass the test suite.
2015-02-28Fixed #24369 -- Prevented crash when `flush`ing before db migrationClaude Paroz
Thanks Thomas Tanner for the report.
2015-02-28Fixed #24413 -- Prevented translation fallback for EnglishClaude Paroz
Thanks Tomasz Kontusz for the report, Baptiste Mispelon for analysis and Tim Graham for the review.
2015-02-27Fixed #24418 -- Prevented crash in refresh_from_db with null fkClaude Paroz
Thanks Johannes Lerch for the report, Tim Graham for the test case, and Simon Charette for the review.
2015-02-27Fixed #24229 -- Changed IntegerField to clean floats representing integersJon Dufresne
2015-02-26Fixed #24406 -- Improved SelectFilter js to use click eventsRolf Jagerman
The SelectFilter widget used href to execute javascript. This was problematic if one wishes to customize the widget, since the href javascript is executed after events are handled. This change modifies the javascript to use click events to handle button behavior.
2015-02-25Fixed #24411 -- Avoided dict key/method clash in admin delete views.Tim Graham
2015-02-24Fixed #24391 -- Made BoundField.value() cache callable values.Michael Angeletti
2015-02-24Fixed #24395 -- Ensured inline ModelsForms have an updated related instance.Stanislas Guerra
2015-02-23Prevented makemigrations from writing in sys.path[0].Aymeric Augustin
There's no reason to assume that sys.path[0] is an appropriate location for generating code. Specifically that doesn't work with extend_sys_path which puts the additional directories at the end of sys.path. In order to create a new migrations module, instead of using an arbitrary entry from sys.path, import as much as possible from the path to the module, then create missing submodules from there. Without this change, the tests introduced in the following commit fail, which seems sufficient to prevent regressions for such a refactoring.
2015-02-23Fixed #24377 -- Fixed model inline formsets with primary key's that have ↵Tim Graham
defaults.
2015-02-23Added formats for the Azerbaijani locale.Emin Mastizada
2015-02-23Fixed #24381 -- removed ForeignObjectRel opts and to_optsAnssi Kääriäinen
These cached properies were causing problems with pickling, and in addition they were confusingly defined: field.rel.model._meta was not the same as field.rel.opts. Instead users should use field.rel.related_model._meta inplace of field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.
2015-02-23Fixed #24366 -- Optimized traversal of large migration dependency graphs.Marten Kenbeek
Switched from an adjancency list and uncached, iterative depth-first search to a Node-based design with direct parent/child links and a cached, recursive depth-first search. With this change, calculating a migration plan for a large graph takes several seconds instead of several hours. Marked test `migrations.test_graph.GraphTests.test_dfs` as an expected failure due to reaching the maximum recursion depth.
2015-02-22Fixed signature of BaseDatabaseOperations.date_interval_sql() and document ↵Michael Manfre
the change.
2015-02-22Fixed a few uses of Template that relied on a default engine.Aymeric Augustin
Refs #24389.
2015-02-22Removed rmtree_errorhandler.Aymeric Augustin
The stated reason for its introduction in d18d37ce no longer applies since Django's code repository was switched from Subversion to git. Furthermore it never had any effect because shutil.rmtree ignores its onerror argument when ignore_errors is True. The reason for its use in template management commands is unclear.
2015-02-22Fixed #24389 -- Isolated the CSRF view from the TEMPLATES setting.Aymeric Augustin
Thanks uranusjr for the report and analysis.
2015-02-21Fixed #24376 -- added verbose_name arg to UUIDFieldMichael Angeletti
2015-02-20Fixed typo in django/db/models/fields/files.py comment.Don Kirkby
2015-02-20Fixed #24341 -- Added specific error messages to RangeField subclassesforesmac
2015-02-20Removed reference to iteration count in the PBKDF2 hasher docstring.Simon Charette
2015-02-20Removed a non-obvious side-effect of assigning Context.template.Aymeric Augustin
Explicit is better than implicit.
2015-02-20Fixed PBKDF2PasswordHasher comments to reflect reality.Frank Wiles
2015-02-20Fixed #24328 -- cleaned up Options._get_fields() implementationAnssi Kääriäinen
2015-02-20Fixed #24351, #24346 -- Changed the signature of allow_migrate().Loic Bistuer
The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583.