summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2013-06-19Autodetect fields, have migrate actually workAndrew Godwin
2013-06-19Makemigration command now worksAndrew Godwin
2013-06-19Removed several unused imports.Aymeric Augustin
2013-06-19First stab at some migration creation commandsAndrew Godwin
2013-06-19Fix test running with new apps stuff/migrate actually running migrationsAndrew Godwin
2013-06-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/loading.py
2013-06-18Fixed #14930 -- values_list() failure on qs ordered by extra columnFlorian Hahn
Thanks lsaffre for the report and simon29, vicould, and Florian Hahn for the patch. Some changes done by committer.
2013-06-18Merge pull request #1281 from loic/ticket6903Aymeric Augustin
Fixed #6903 - Preserved admin changelist filters.
2013-06-19Fixed #6903 - Preserve admin changelist filters after saving or deleting an ↵Loic Bistuer
object
2013-06-18Fixed #20079 -- Improve security of password reset tokensErik Romijn
2013-06-18Fixed #20593 -- Allow blank passwords in check_password() and set_password()Erik Romijn
2013-06-18Fixed #20618 -- Fixed regression in `BoundField.label_tag`.Baptiste Mispelon
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-06-18Refactored ValidationError to allow persisting error params and error codes ↵Loic Bistuer
as the exception bubbles up
2013-06-16Fixed #20464 -- Added a `total_error_count` method on formsets.Baptiste Mispelon
Thanks to frog32 for the report and to Tim Graham for the review.
2013-06-16Fixed #20583 -- ORM always uses setup_joins() for join generationAnssi Kääriäinen
There were a couple of places which used Query.join() directly. By using setup_joins() in these places the code is more DRY, and in addition there is no need to directly call field.get_joining_columns() unless the field is the given join_field from get_path_info(). This makes it easier to make sure a ForeignObject subclass generates joins correctly in all cases.
2013-06-15Worked around Python 3.3 modified exception reprClaude Paroz
Refs #20599.
2013-06-15Fixed #20599 -- Changed wording of ValueError raised by _load_libraryJaap Roes
The _load_library method on BasePasswordHasher turns ImportErrors into ValueErrors, this masks ImportErrors in the algorithm library. Changed it to a clearer worded error message that includes the ImportError string.
2013-06-14Merge pull request #1272 from chicheng/addition-http-status-codesMarc Tamlyn
Fixed #20598 -- Add new HTTP status codes defined in rfc6585
2013-06-14Fixed #20289 -- pickling of dynamic modelsAnssi Kääriäinen
2013-06-14Fixed python 3.2 compat.Florian Apolloner
2013-06-14Fixed #20528 -- regression in select_related join promotionAnssi Kääriäinen
The join used by select_related was incorrectly INNER when the query had an ORed filter for nullable join that was trimmed away. Fixed this by forcing the join type to LOUTER even when a join was trimmed away in ORed queries.
2013-06-14Fixed #20598 -- Add new HTTP status codes defined in rfc6585CHI Cheng
428, 429, 431 and 511
2013-06-14Fixed #15273 -- Extend RedirectView to allow reversal by name.Marc Tamlyn
Thanks to @DrMeers for the report and @ludwigkraatz for the initial patch.
2013-06-14Fixed #17076 -- When reversing a URL fails, inform the user which patterns ↵Wilfred Hughes
were tried.
2013-06-14Merge pull request #1270 from ↵Marc Tamlyn
tomchristie/remove-incorrect-content-type-test-client Remove incorrect CONTENT_TYPE header from GET and HEAD requests
2013-06-14Remove incorrect CONTENT_TYPE header from GET and HEAD requestsTom Christie
2013-06-13Added a ``checksetup`` management command for verifying Django compatibility.Daniel Lindsley
2013-06-13Fixed #20000 -- Allowed ModelForm meta overrides for label, help_text and ↵Loic Bistuer
error_messages
2013-06-13Fixed #20594 -- Add validation to models.SlugField.Baptiste Mispelon
Thanks carbonXT for the report.
2013-06-12Fixed #20579 -- Improved TransactionTestCase.available_apps.Aymeric Augustin
Also moved its documentation to the 'advanced' section. It doesn't belong to the 'overview'. Same for TransactionTestCase.reset_sequences. When available_apps is set, after a TransactionTestCase, the database is now totally empty. post_syncdb is fired at the beginning of the next TransactionTestCase. Refs #20483.
2013-06-11Revert "Fixed #20462 - Fixed sqlite regex lookups for null values and ↵Tim Graham
non-string fields." This reverts commit 64041f0e6e7a773574d7cde978d16305200004ea. lookup.tests.LookupTests.test_regex_non_string fails under Postgres. We should also try to rewrite the test using an existing model.
2013-06-11Fixed #20462 - Fixed sqlite regex lookups for null values and non-string fields.Axel Haustant
2013-06-11Fixed #20585: normalize signature of DeletionMixin.post.Baptiste Darthenay
2013-06-10Fixed #18134 -- BoundField.label_tag now includes the form's label_suffixGabe Jackson
There was an inconsistency between how the label_tag for forms were generated depending on which method was used: as_p, as_ul and as_table contained code to append the label_suffix where as label_tag called on a form field directly did NOT append the label_suffix. The code for appending the label_suffix has been moved in to the label_tag code of the field and the HTML generation code for as_p, as_ul and as_table now calls this code as well. This is a backwards incompatible change because users who have added the label_suffix manually in their templates may now get double label_suffix characters in their forms.
2013-06-10Defined available_apps in relevant tests.Aymeric Augustin
Fixed #20483.
2013-06-10Added TransactionTestCase.available_apps.Aymeric Augustin
This can be used to make Django's test suite significantly faster by reducing the number of models for which content types and permissions must be created and tables must be flushed in each non-transactional test. It's documented for Django contributors and committers but it's branded as a private API to preserve our freedom to change it in the future. Most of the credit goes to Anssi. He got the idea and did the research. Fixed #20483.
2013-06-10Added a stealth option to flush to allow cascades.Aymeric Augustin
This allows using flush on a subset of the tables without having to manually cascade to all tables with foreign keys to the tables being truncated, when they're known to be empty. On databases where truncate is implemented with DELETE FROM, this doesn't make a difference. The cascade is allowed, not mandatory.
2013-06-09Added runserver validation to detect if DEBUG=False and ALLOWED_HOSTS is empty.Tim Graham
Refs #19875.
2013-06-09Replaced a dict emulating a set with a set.Aymeric Augustin
2013-06-07Fixed #19925 - Added validation for REQUIRED_FIELDS being a listChris Streeter
Thanks Roman Alexander for the suggestion.
2013-06-07Initial stab at a migrate command, it's probably quite a way off.Andrew Godwin
2013-06-07Auto-naming for migrations and some writer fixesAndrew Godwin
2013-06-07Autodetector testsAndrew Godwin
2013-06-07Field encodingAndrew Godwin
2013-06-07A bit of an autodetector and a bit of a writerAndrew Godwin
2013-06-07Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/fields/related.py
2013-06-06Bumped verion numbers for 1.6a1.Jacob Kaplan-Moss
2013-06-06Fixed #12337 - Honor ModelForm.Meta.exclude when saving ManyToManyFields.Stephen Burrows
Thanks margieroginski for the report.
2013-06-06Fixed #20502 (again) -- More i18n cache flush in testsClaude Paroz
Thanks Timo Graham for noticing the failures.