summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-12-07Added extra newline for flake8.Tim Graham
2013-12-07Fixed #21555 -- Made ValidationError pickable.Loic Bistuer
Thanks trac username zanuxzan for the report and original patch.
2013-12-07Fixed #21551 -- Reenabled loading fixtures from subdirectoryClaude Paroz
This was a regression in Django 1.6 that was only partially restored in 839940f27f. Thanks Jonas Haag for the report.
2013-12-07Fixed #21568 -- Added missing ModelMultipleChoiceField to_python methodClaude Paroz
Thanks dibrovsd at gmail.com for the report and Simon Charette for the review.
2013-12-07Fixed #21572 -- Added unit test for django.utils.text.normalize_newlines.Vajrasky Kok
2013-12-07Fixed #21530 -- Prevent AttributeError in default URLconf detection code.Baptiste Mispelon
Thanks to @dmyerscoug for the report and original patch and to @alasdairnicol for the added tests.
2013-12-06Fixed #21566 -- Fixed AttributeError when using bulk_create with ForeignObject.Roger Hu
2013-12-06Fixed #21554 -- Incorrect SQL generated when using multiple inheritance.pegler
2013-12-06Added missing deconstruct() methods.Baptiste Mispelon
2013-12-06Fixed ModelState breaking when unique_together has unhashable elements.Baptiste Mispelon
2013-12-06Fixed TypeError when rendering ModelState with multiple bases.Baptiste Mispelon
2013-12-05Fixed a flake8 errorAlex Gaynor
2013-12-04Migration VCS conflict detection and --merge for makemigrationsAndrew Godwin
2013-12-04Don't make a second migration if there was a force-null-default addcol.Andrew Godwin
2013-12-04Fixed 21406 -- Made blocktrans 'trimmed' option preserve line numbers.Bouke Haarsma
Thanks Bouke Haarsma for report, fix and initial patch.
2013-12-02Fixed #21538 -- Added numpy to test/requirements/base.txtAlasdair Nicol
Thanks Tim Graham for the report
2013-12-01Fixed incorrect type for max_length.Tim Graham
2013-11-30Refs #21230 -- removed direct settings manipulation from template testsUnai Zalakain
2013-11-30Enabled makemessages to support several translation directoriesClaude Paroz
Thanks Rémy Hubscher, Ramiro Morales, Unai Zalakain and Tim Graham for the reviews. Also fixes #16084.
2013-11-30Fixed #20867 -- Added the Form.add_error() method.Loic Bistuer
Refs #20199 #16986. Thanks @akaariai, @bmispelon, @mjtamlyn, @timgraham for the reviews.
2013-11-29Fixed #21380 -- Added a way to set different permission for static directories.Vajrasky Kok
Previously when collecting static files, the directories would receive permissions from the global umask. Now the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS and there's an option to specify the permissions by subclassing any of the static files storage classes and setting the directory_permissions_mode parameter.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-28Fixed #21517 -- Added unit test for non-autoincrement primary key with value 0.Vajrasky Kok
2013-11-27PEP-8 cleanupAnssi Kääriäinen
Refs #21169
2013-11-27Added a bulk option to RelatedManager remove() and clear() methodsLoic Bistuer
Refs #21169
2013-11-27Fixed #21169 -- Reworked RelatedManager methods use default filteringLoic Bistuer
The `remove()` and `clear()` methods of the related managers created by `ForeignKey`, `GenericForeignKey`, and `ManyToManyField` suffered from a number of issues. Some operations ran multiple data modifying queries without wrapping them in a transaction, and some operations didn't respect default filtering when it was present (i.e. when the default manager on the related model implemented a custom `get_queryset()`). Fixing the issues introduced some backward incompatible changes: - The implementation of `remove()` for `ForeignKey` related managers changed from a series of `Model.save()` calls to a single `QuerySet.update()` call. The change means that `pre_save` and `post_save` signals aren't called anymore. - The `remove()` and `clear()` methods for `GenericForeignKey` related managers now perform bulk delete so `Model.delete()` isn't called anymore. - The `remove()` and `clear()` methods for `ManyToManyField` related managers perform nested queries when filtering is involved, which may or may not be an issue depending on the database and the data itself. Refs. #3871, #21174. Thanks Anssi Kääriäinen and Tim Graham for the reviews.
2013-11-27Fixed #21438: makemigrations now detects ManyToManyFieldsAndrew Godwin
2013-11-26Fixed #21448 -- Fixed test client logout with cookie-based sessionsClaude Paroz
Thanks Gunnar Scherf for the report and the suggested patch.
2013-11-26Fixed #21512 -- Added more complete information about Pillow and PIL in ↵Vajrasky Kok
model_fields and model_forms tests.
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
2013-11-25flake8 fixAlex Gaynor
2013-11-25Fixed #21403: Corrected test codeShai Berger
A test for annotations incorrectly assumed that the first instance (in the test) of a model using AutoField for PK will always get pk=1. The test was changed to compare against actual instance id instead.
2013-11-25Fixed test failure on OracleShai Berger
Failure was introduced with test in [19e5cd77f0536b778b00788e34d8199835143855]
2013-11-24flake8 fixesAlex Gaynor
2013-11-24Fixed #21391 -- Allow model signals to lazily reference their senders.Simon Charette
2013-11-24Fixed #21497 -- Forced conversion to bytes for very long index namesJoel Bohman
2013-11-24Added more tests for ContentTypeManager.get_for_model.Antonis Christofides
2013-11-24Fixed #21500 -- Removed imports of deprecated utils.importlibBaptiste Mispelon
2013-11-24Properly closed cache connections at the end of the request.Florian Apolloner
This only affects the new cache api and not the deprecated get_cache. Refs #21012
2013-11-24Fixed flake8 error (5 space identation!!!)Alex Gaynor
2013-11-24Don't fail if there is no memcached backend active.Florian Apolloner
2013-11-24Fixed regression from ffc37e2343a93cf6d44247e20cd263b41f931716.Florian Apolloner
This (hopefully) ensures that the cache are created the same way as before the offending commit.
2013-11-24Fixed #21505 -- Added unit test for django.utils.text.get_valid_filename.Vajrasky Kok
2013-11-24Randomized KEY_PREFIX in caches test to prevent failures during parallel ↵Florian Apolloner
testruns.
2013-11-23Fixed test breakage under python 3 introduced by ↵Baptiste Mispelon
a480f8320a5b36501bfd0e8cd70b8dc04adf2d08.
2013-11-23Don't fail if cPickle doesn't exist.Florian Apolloner
Today is not my day :(
2013-11-23Follow up to e112654fc81ddb3fbffbb8382b004d69367a85feFlorian Apolloner
Actually comitted the code now :þ
2013-11-23Fixed #21200 -- Consistantly raise errors across all cache backends.Florian Apolloner
Thanks to tchaumeny for the patch.
2013-11-23A handful of flake8 fixesAlex Gaynor
2013-11-23Simplified iteration in HTTP response objects.Aymeric Augustin
Fixed #20187 -- Allowed repeated iteration of HttpResponse. All this became possible when support for old-style streaming responses was finally removed.