summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
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 several typos in DjangoAlex Gaynor
2014-05-28Simplified, very slightly, some code in the oracle backendAlex Gaynor
2014-05-28Merge pull request #2734 from valberg/double_order_troubleAndrew Godwin
Fixed #22720 -- Migrations attempt to create _order twice.
2014-05-29Fixed #22720 -- Migrations attempt to create _order twice.Víðir Valberg Guðmundsson
2014-05-28Set straight the sense of 'uppercases_column_names' feature flagShai Berger
2014-05-28Fixed constant_time_compare on Python 2.7.7Florian Apolloner
Python 2.7.7 includes compare_digest in the hmac module, but it requires both arguments to have the same type. This is usually not a problem on Python 3 since everything is text, but we have mixed unicode and str on Python 2 -- hence make sure everything is bytes before feeding it into compare_digest.
2014-05-28Fixed #22684 -- Added `empty_label` option on ↵Guillaume Pannatier
`django.forms.extras.widets.SelectDateWidget` Thanks danielsamuels for the report
2014-05-28Fixed #22715: Corrected sql for defaults of BinaryField on Oracle with Python3Shai Berger
While at it, fixed a problem in returning empty values (still with BinaryField/Oracle/Python3).
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-05-28Fixed #22714 -- Made contrib.gis use six-provided memoryview typeClaude Paroz
Thanks Tim Graham for the report.
2014-05-27Argument to `reversed` must be a sequence on Py3.Simon Charette
2014-05-27Fix a regression introduced by f011b90363.Simon Charette
`django.get_version` was actually used by the module.
2014-05-27Removed an old compatibility shim added in 1.0Claude Paroz
2014-05-27Fixed #21630 -- Simplified management command discoveryClaude Paroz
Thanks Aymeric Augustin for the report end the review.
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-25Removed executeable bit from a few files.Florian Apolloner
2014-05-26Fixed a few ResourceWarning in the test suite. Refs #22680.Loic Bistuer
2014-05-25Removed code deprecated from Django 1.2Claude Paroz
2014-05-24Removed comment forgotten in 3caf957ed5Claude Paroz
2014-05-24Removed GeoWhereNode, obsoleted by GISLookupClaude Paroz
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-24Applied unicode_literals to makemessages commandClaude Paroz
This also fixes #22686 as some sort of side-effect.
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 #22679 -- Fixed empty tuple serialization in MigrationWriter.Moayad Mardini
Thanks rockallite.wulf for the report.
2014-05-22Merge pull request #2699 from graingert/patch-3Marc Tamlyn
the SECRET_KEY is not a hash
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.
2014-05-22the SECRET_KEY is not a hashThomas Grainger
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-21Fixed unused import.Loic Bistuer
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-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-20Revert "Fixed #22645: Allow apps with no models module to still have migrations"Andrew Godwin
This reverts commit a4737bf6ae36a5f1cb29f2232f6deeff084fabff.
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Fixed #22649: Beefed up quote_valueAndrew Godwin
2014-05-20Merge pull request #2634 from loic/ticket22424Andrew Godwin
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
2014-05-20Add feature for implied null (needed for Firebird backend)Andrew Godwin
2014-05-20Fixed #22645: Allow apps with no models module to still have migrationsAndrew Godwin
2014-05-20Removed unused translations in auth testsClaude Paroz
2014-05-19Fixed #22638 -- Changed CookieWizardView to ignore invalid cookiesErik Romijn
2014-05-19Revert "Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f."Marc Tamlyn
This reverts commit 5a2556afb9b1b3ef6e0622552970c67ac84ecd28.
2014-05-19Updated translation catalogsClaude Paroz