summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-05-22Added array field support for PostgreSQL.Marc Tamlyn
The first part of django.contrib.postgres, including model and two form fields for arrays of other data types. This commit is formed of the following work: Add shell of postgres app and test handling. First draft of array fields. Use recursive deconstruction. Stop creating classes at lookup time. Add validation and size parameter. Add contained_by lookup. Add SimpleArrayField for forms. Add SplitArrayField (mainly for admin). Fix prepare_value for SimpleArrayField. Stop using MultiValueField and MultiWidget. They don't play nice with flexible sizes. Add basics of admin integration. Missing: - Tests - Fully working js Add reference document for django.contrib.postgres.fields.ArrayField. Various performance and style tweaks. Fix internal docs link, formalise code snippets. Remove the admin code for now. It needs a better way of handing JS widgets in the admin as a whole before it is easy to write. In particular there are serious issues involving DateTimePicker when used in an array. Add a test for nested array fields with different delimiters. This will be a documented pattern so having a test for it is useful. Add docs for SimpleArrayField. Add docs for SplitArrayField. Remove admin related code for now. definition -> description Fix typo. Py3 errors. Avoid using regexes where they're not needed. Allow passing tuples by the programmer. Add some more tests for multidimensional arrays. Also fix slicing as much as it can be fixed. Simplify SplitArrayWidget's data loading. If we aren't including the variable size one, we don't need to search like this.
2014-05-21Merge pull request #2498 from ramiro/move-serverhandlerRamiro Morales
Moved ServerHandler helper class to tests.
2014-05-21Merge pull request #2679 from ramiro/t22421Ramiro Morales
Fixed #22421 -- Regression in fixtures loading.
2014-05-21Fixed #20477: Allowed list of modules for FORMAT_MODULE_PATHMartin Brochhaus
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). A feature has been added to also allow a list of strings. This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module.
2014-05-21Skipped a migrations test that's not supported on MySQL + Python 3.Tim Graham
2014-05-21Fixed the ordering of prefetch lookups so that latter lookups can refer to ↵Loic Bistuer
former lookups. Thanks Anssi Kääriäinen and Tim Graham for the reviews. Refs #17001 and #22650.
2014-05-21Fixed #22650 -- Fixed regression on prefetch_related.Loic Bistuer
Regression from f51c1f59 when using select_related then prefetch_related on the reverse side of an O2O: Author.objects.select_related('bio').prefetch_related('bio__books') Thanks Aymeric Augustin for the report and tests. Refs #17001.
2014-05-20Merge pull request #2692 from fcurella/patch-5Alex Gaynor
#22667 replaced occurrences of master/slave terminology with leader/follower
2014-05-20replaced occurrences of master/slave terminology with leader/followerFlavio Curella
2014-05-20Fixed #22557 -- ManifestStaticFilesStorage did not cleanup deleted files.Denis Cornehl
When using ManifestStaticFilesStorage, deleted static files would be correctly cleaned up by "collectstatic --clear", but the manifest file would still contain the stale entries. Thanks to tedtieken for the report
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Merge pull request #2634 from loic/ticket22424Andrew Godwin
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
2014-05-19Fixed #22661 -- Move makemigrations tests to the proper classHuu Nguyen
2014-05-19Fix a2dd618 for mysql.Marc Tamlyn
2014-05-19Revert "Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of ↵Tim Graham
modules." This reverts commit 950b6de16ac2f8135612f2ed5984c090dd8e4dcf.
2014-05-19Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of modules.Martin Brochhaus
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module.
2014-05-18Fixed #21799 - Modified loaddata --ignorenonexistent to ignore models.Esau Rodriguez
2014-05-18Refs #21230 -- removed direct settings manipulation from staticfile testsHuu Nguyen
2014-05-18Failing testcases for #22649.Loic Bistuer
2014-05-18Fixed #22424 -- Fixed handling of default values for TextField/BinaryField ↵Loic Bistuer
on MySQL. Thanks syphar for the review and suggestions.
2014-05-17Fixed #22421 -- Regression in fixtures loading.Ramiro Morales
Loading fixtures were failing since the refactoring in 244e2b71f5 for inheritance setups where the chain contains abstract models and the root ancestor contains a M2M relation. Thanks Stanislas Guerra for the report. Refs #20946.
2014-05-17Moved wordwrap test to their own functionMarkus Amalthea Magnuson
The `wordwrap` tests were in the `test_wordcount()` method for some reason. This moves them to their own method, and make consistent use of double quotes where needed.
2014-05-17Fixed several flake8 errors, including one where a test wouldn't be runAlex Gaynor
2014-05-17Fixed #22648 -- Transform.output_type should respect overridden ↵Marc Tamlyn
custom_lookup and custom_transform. Previously, class lookups from the output_type would be used, but any changes to custom_lookup or custom_transform would be ignored.
2014-05-17Merge pull request #2346 from Markush2010/ticket21905Florian Apolloner
Fixed #21905 -- Add info message if DateField or TimeField use a fixed value
2014-05-16Fixed #16245 -- Included traceback in send_robust()'s responseUnai Zalakain
Exceptions from the (receiver, exception) tuples returned by ``send_robust()`` now have always their traceback attached as their ``__traceback__`` argument.
2014-05-16Optimized make_aware/naive by removing redundant checks. Refs #22625.Aymeric Augustin
Also added tests with pytz and removed misplaced tests.
2014-05-16Fixed #22625 -- Normalized make_aware/naive errors.Aymeric Augustin
Also added tests for is/make_aware/naive. Thanks Tom Michaelis for the report.
2014-05-16Fix storing of binary fields and unicode textfields for Oracle/Python3Shai Berger
2014-05-16Fixed #21905 -- Add info message if DateField or TimeField use a fixed valueMarkus Holtermann
2014-05-16Fixed #22266 - quote PK before redirecting away from add_view ↵Stas Rudakou
(django.contrib.admin)
2014-05-16Fixed #18389 -- Fixed the way contribute_to_class is calledVlad Starostin
Now this method is only called only if the object is an instance. This allows to have field classes as model class attributes.
2014-05-16Refs #21798 - Modified error number to provide room for future expansion.Russell Keith-Magee
2014-05-16Fixed #22531 -- Added tree.Node.__repr__ and tests for the class.Moayad Mardini
While Node class has a useful `__str__`, its `__repr__` is not that useful. Added a `__repr__` that makes use of the current `__str__`. This is especially useful since the more popular `Q` class inherits `tree.Node`. Also created new tests that cover most of `Node` class functionality.
2014-05-16Removed an unused importAlex Gaynor
2014-05-16Fixed #22490 -- removed obsolete ComplexFeed class from syndication_testsNikolaus Schlemm
It was previously used in a test that was deprecated and then removed, this cruft can be removed now.
2014-05-16Fixed #22579 -- Corrected validation for email to reject trailing slashErik Romijn
Thanks to Claude Paroz for the report and patch and Tomasz Paczkowski for the review.
2014-05-16Fixed #22628 -- Took initial forms into account when combining ↵Stephen Burrows
FormSet.min_num and FormSet.extra. Forwardport of 79f15ab1ef from stable/1.7.x
2014-05-16Merge pull request #2657 from nschlemm/20140516-test_testcase_orderingMarc Tamlyn
cater for running tests from another directory than tests
2014-05-16cater for running tests from another directory than tests - applying ↵Nikolaus Schlemm
existing pattern to newly added test_testcase_ordering as well
2014-05-16Fixed #21634 -- Prevented hiding ImproperlyConfigured when command not foundClaude Paroz
Thanks nikolay.v.golub@gmail.com for the report.
2014-05-16Fixed #21798 -- Added check for DateTime mutually exclusive optionsDaniel Pyrathon
Added DateTimeCheckMixin to avoid the use of default, auto_now, and auto_now_add options together. Added the fields.E151 Error that is raised if one or more of these options are used together.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-05-15Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.Anders Steinlein
Thanks Stephen Burrows for work on the patch as well. Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
2014-05-14Added additional checks in is_safe_url to account for flexible parsing.Erik Romijn
This is a security fix. Disclosure following shortly.
2014-05-14Dropped fix_IE_for_vary/attach.Aymeric Augustin
This is a security fix. Disclosure following shortly.
2014-05-13Fixed #22533 -- Added label_suffix parameter to form fields.Julen Ruiz Aizpuru
Fields can now receive the `label_suffix` attribute, which will override a form's `label_suffix`. This enhances the possibility to customize form's `label_suffix`, allowing to use such customizations while using shortcuts such as `{{ form.as_p }}`. Note that the field's own customization can be overridden at runtime by using the `label_prefix` parameter to `BoundField.label_tag()`. Refs #18134.
2014-05-12Fixed flake8 error.Tim Graham
2014-05-11Completed long overdue sqlinitialdata deprecation.Ramiro Morales
2014-05-11Fixed some test models' natural_key() methods.Ramiro Morales