summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-06-05Added a flag for the ability to introspect nullable fields.Aymeric Augustin
Previously this was conflated with another Oracle-specific behavior.
2014-06-05Avoided using BinaryField unecessarily in tests.Aymeric Augustin
Several database backends struggle with binary data. This change minimizes the risk of unrelated tests failures when binary fields trigger errors. Forward-port of 2e4bcb9b from stable/1.7.x.
2014-06-05Reordered setUp code in prefetch_related tests.Aymeric Augustin
This allows these tests to run on databases that reject duplicate NULL values in unique fields e.g. SQL Server. Forward port of 4fb50a9a from stable/1.7.x.
2014-06-04Fixed #13776 -- Fixed ModelForm.is_valid() exception with non-nullable FK ↵Anubhav Joshi
and blank=True. Thanks peterbe for the report.
2014-06-04Fixed #22684 -- Amended SelectDateWidget.empty_label to accept a tuple of ↵gyx1000
values. Thanks danielsamuels for the report
2014-06-04Fixed #22717 -- Auto-corrected missing ending slash in FileSystemStorageClaude Paroz
Thanks David Fischer for the report and Moayad Mardini for the review.
2014-06-03Fixed #22681 -- Made TarArchive recognize leading directories properly.Alexandr Shurigin
2014-06-03Fixed #22384 -- Deprecated reversing URLs by dotted path.Tim Graham
2014-06-02Fixed #11776 -- Added CSS class for non-field/top of form errors.Nick Presta
Thanks Daniel Pope for the suggestion.
2014-06-02Fixed #22690 -- Added a check for proxy models containing fields.Craig de Stigter
Removed the FieldError raised by ModelBase.__new__ in this case.
2014-06-02Revert "Fixed #19303 -- Fixed ModelAdmin.formfield_overrides on fields with ↵Tim Graham
choices" This reverts commit 9d1987d7679165ad3a7c2b713a8a488cc1421905.
2014-06-01Fixed #22711 -- Adjusted ordering checks to allow implicit relation fields.Vincent-Vega
refs #19195.
2014-06-01Fixed #22659 -- Prevent model states from sharing field instances.Simon Charette
Thanks to Trac alias tbartelmess for the report and the test project.
2014-06-01Split GenericRelationsTests.test_generic_relations into several tests; refs ↵José L. Patiño
#18586.
2014-06-01Merge pull request #2726 from gchp/ticket-20550Aymeric Augustin
Fixed #20550 -- Added ability to preserve test db between runs
2014-06-01Revert "Making SQL management commands migration aware."Florian Apolloner
This reverts commit cb9c9a7b5879671053c7d2ad6e79943a8814b274.
2014-05-31Removed an unused importAlex Gaynor
2014-05-30Improved the test for refs #22682.Moayad Mardini
Thanks apollo13 for the review.
2014-05-29Fix additional test failures caused by migration pollutionAndrew Godwin
2014-05-29Merge pull request #2744 from mmardini/MIGRATION_MODULESAndrew Godwin
Fixed #22682 -- `makemigrations` will create `MIGRATION_MODULES` package
2014-05-30Fixed #22682 -- `makemigrations` will create `MIGRATION_MODULES` packageMoayad Mardini
`makemigrations` will automatically create the package specified in `MIGRATION_MODULES` if it doesn't already exist. Thanks ovidiuc4 for the report.
2014-05-29Making SQL management commands migration aware.Víðir Valberg Guðmundsson
2014-05-29Fixed #20401 -- ContentTypeManager.get_for_model reads from db_for_read.Antonis Christofides
Thanks Simon Charette and Tim Graham for the reviews.
2014-05-29Implement Migration.run_beforeChris Beaven
This attribute (used for reverse dependencies) was previously declared and mentioned in the code, but never actually used.
2014-05-28Fixed a typo that Tim Graham noticedAlex Gaynor
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-28Merge pull request #2734 from valberg/double_order_troubleAndrew Godwin
Fixed #22720 -- Migrations attempt to create _order twice.
2014-05-29Adding test to fix of duplicate _order fields (#22720)Víðir Valberg Guðmundsson
2014-05-28Set straight the sense of 'uppercases_column_names' feature flagShai Berger
2014-05-28Fixed #22684 -- Added `empty_label` option on ↵Guillaume Pannatier
`django.forms.extras.widets.SelectDateWidget` Thanks danielsamuels for the report
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-05-27Fixed #22699 -- Configure default settings in some management commands.Aymeric Augustin
This makes it possible to run django.setup() in management commands that don't need a settings module. In addition it simplifies error handling. Thanks Claude for the review.
2014-05-27Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.Moayad Mardini
`makemigrations --dry-run` will output the complete migrations file that would be written if it's used along with `--verbosity 3`.
2014-05-26Restored Python 2 compatibility.Florian Apolloner
2014-05-25Removed executeable bit from a few files.Florian Apolloner
2014-05-25Fixed a few warnings in the testsuite.Florian Apolloner
2014-05-26Fixed a ResourceWarning that wasn't properly fixed by the previous commit.Loic Bistuer
Also removed unused import in runtests.py.
2014-05-26Fixed a few ResourceWarning in the test suite. Refs #22680.Loic Bistuer
2014-05-24Fixed #22676 -- makemigrations --dry-run should not ask for defaultsMoayad Mardini
Made the fix in InteractiveMigrationQuestioner class code, rather than MigrationAutodetector, because --dry-run shouldn't affect whether MigrationAutodetector will detect non-nullable fields, but the questioner should skip the question and returns a None for default (since that won't be used anyway) if --dry-run is used.
2014-05-24Fixed #22510 -- Harden field removal to only None.Marc Tamlyn
Refs #8620. If we allow any value to remove form fields then we get name clashes with method names, media classes etc. There was a backwards incompatibility introduced meaning ModelForm subclasses with declared fields called media or clean would lose those fields. Field removal is now only permitted by using the sentinel value None. The docs have been slightly reworded to refer to removal of fields rather than shadowing. Thanks to gcbirzan for the report and initial patch, and several of the core team for opinions.
2014-05-24Moved some imports in runtests.pyClaude Paroz
2014-05-24Made runtests.py use 'set_installed_apps' APIClaude Paroz
This will also trigger the ready method of any tested application, which was not run before.
2014-05-23Fixed tuple serialization test.Baptiste Mispelon
Thanks to rockallite for the report.
2014-05-23Fixed #22602 -- Improved code coverage of makemigrations command tests.Huu Nguyen
2014-05-22Fixed #21357 -- Fixed test client session initialization.Preston Timmons
The test client will now create a session when it is first accessed if no session already exists.
2014-05-22Fixed #21598 -- cleaned up template loader overrides in testsUnai Zalakain
- Template loader overriding is managed with contexts. - The test loader is a class (function based loaders entered deprecation timeline in 1.4). - Template loader overrider that overrides with test loader added.
2014-05-22Fixed #22667 -- Replaced leader/follower terminology with primary/replicaFlavio Curella
2014-05-22Fixed #22679 -- Fixed empty tuple serialization in MigrationWriter.Moayad Mardini
Thanks rockallite.wulf for the report.
2014-05-22Fix a test dependent on json ordering.Marc Tamlyn
2014-05-22Made nested deconstruction support both forms of deconstruct()Marc Tamlyn
Nested deconstruction should (silently) handle Field.deconstruct() as well as other arbitrary deconstructable objects. This allows having a field in the deconstruction of another field.