summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2015-02-20Fixed #24373 -- Added run_validators to ArrayField.Marc Tamlyn
Thanks to DavidMuller for the report.
2015-02-20Update converters to take a consistent set of parameters.Marc Tamlyn
As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
2015-02-20Fixed #24343 -- Ensure db converters are used for foreign keys.Marc Tamlyn
Joint effort between myself, Josh, Anssi and Shai.
2015-02-19Fixed typo in django.core.servers.basehttp message.Alex Vidal
2015-02-19Set context.template instead of context.engine while rendering.Aymeric Augustin
This opens more possibilities, like accessing context.template.origin. It also follows the chain of objects instead of following a shortcut.
2015-02-19Fixed #20889 -- Prevented BadHeaderError when Python inserts newlineClaude Paroz
Workaround for http://bugs.python.org/issue20747. In some corner cases, Python 2 inserts a newline in a header value despite `maxlinelen` passed in Header constructor. Thanks Tim Graham for the review.
2015-02-19Fixed #24307: Avoided redundant column nullability modifications on OracleShai Berger
Thanks Joris Benschop for the report, and Tim Graham for the tests.
2015-02-18Fixed #24291 - Fixed migration ModelState generation with unused swappable ↵Marten Kenbeek
models Swapped out models don't have a _default_manager unless they have explicitly defined managers. ModelState.from_model() now accounts for this case and uses an empty list for managers if no explicit managers are defined and a model is swapped out.
2015-02-18Removed unused foreign_key_re variables in MySQL/Oracle DB backendsAdam Chainz
2015-02-18Refs #24324 -- Fixed crash in {% debug %} tag on Python 2.Tim Graham
If Django is installed in a path that contains non-ASCII characters, the tag failed with UnicodeDecodeError.
2015-02-17Refs #24324 -- Fixed UnicodeDecodeError in MigrationWriter on Python 2.Tim Graham
2015-02-17Refs #24324 -- Fixed UnicodeDecodeError in template_backends testsTim Graham
The message for the SuspiciousFileOperation exception needs to be a unicode string.
2015-02-17Refs #24324 -- Fixed get_app_template_dirs() UnicodeDecodeError on Python 2.Tim Graham
The function implemented most of upath(), but skipped the check for strings that are already unicode.
2015-02-17Refs #24324 -- Fixed UnicodeDecodeError in makemigrations.Tim Graham
If the project path contained a non-ASCII character, Python 2 crashed.
2015-02-17Refs #24324 -- Fixed UnicodeEncodeError in SQLite backend while testing.Tim Graham
If 'name' contained non-ASCII characters, the comparison raised a UnicodeEncodeError on Python 2.
2015-02-17Refs #24324 -- Fixed makemessages crash when Django is installed in a ↵Tim Graham
non-ASCII path.
2015-02-17Refs #24324 -- Fixed management command discovery on non-ASCII paths.Tim Graham
2015-02-16Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for ↵Tim Graham
contrib.postgres).
2015-02-16Moved contrib.contenttypes tests out of contrib.Tim Graham
2015-02-16Fixed #24299 -- Added an auth migration to ensure contenttypes is migrated.Tim Graham
Without this migration, the auth signal handlers will fail if migrating only auth.
2015-02-16Refs #24299 -- Made contenttypes migrations signal handler more robust.Sergey Fedoseev
2015-02-16Fixed #24225, #24264, #24282 -- Rewrote model reloading in migration project ↵Markus Holtermann
state Instead of naively reloading only directly related models (FK, O2O, M2M relationship) the project state needs to reload their relations as well as the model changes as well. Furthermore inheriting models (and super models) need to be reloaded in order to keep inherited fields in sync. To prevent endless recursive calls an iterative approach is taken.
2015-02-16Removed unnecessary __init__ definition from DebugLexer.Preston Timmons
2015-02-16Explicitly checked for LookupError in contenttypes migrationMarkus Holtermann
2015-02-16Reworked docstrings and comments in related.py.Loic Bistuer
Thanks Tim Graham for the review.
2015-02-16Merged ManyRelatedObjectsDescriptor and ReverseManyRelatedObjectsDescriptorLoic Bistuer
and made all "many" related objects descriptors inherit from ForeignRelatedObjectsDescriptor.
2015-02-15Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin
2015-02-14Added missing return value to DurationField.prepare_value(); refs #24339.Michael Angeletti
2015-02-14Removed 'autocommit' options for the psycopg2 backend.Aymeric Augustin
It was documented as not having any effect since Django 1.6.
2015-02-14Cleaned up init_connection_state in the psycopg2 backend.Aymeric Augustin
settings_dict['TIME_ZONE'] is set in ConnectionHandler.ensure_defaults.
2015-02-14Fixed #24318 -- Set the transaction isolation level with psycopg >= 2.4.2.Aymeric Augustin
2015-02-14Fixed #24339 -- Fixed crash with empty DurationField form field.Michael Angeletti
2015-02-14Fixed #15779 -- Allowed 'add' primary key in admin editionClaude Paroz
Thanks Marwan Alsabbagh for the report, and Simon Charette and Tim Graham for the reviews.
2015-02-14Fixed #24338 -- Accepted Template wrapper in {% extends %}.Aymeric Augustin
Explicitly checking for django.template.Template subclasses is preferrable to duck-typing because both the django.template.Template and django.template.backends.django.Template have a render() method. Thanks spectras for the report.
2015-02-14Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.Loic Bistuer
Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion.
2015-02-13Fixed #24320 - Used field.value_to_string() in serialization of foreign key.Andriy Sokolovskiy
This fixes serialization of a ForeignKey to a UUIDField as the test indicates.
2015-02-13Fixed #24315 -- Fixed auth.views.password_reset_confirm() with a UUID user.Tim Graham
2015-02-13Fixed #24334 -- Allowed admin password reset to work with non-digit custom ↵Tim Graham
user model primary key. Thanks Loic for help and Simon for review.
2015-02-13Fixed #24184 -- Prevented automatic soft-apply of migrationsMarkus Holtermann
Previously Django only checked for the table name in CreateModel operations in initial migrations and faked the migration automatically. This led to various errors and unexpected behavior. The newly introduced --fake-initial flag to the migrate command must be passed to get the same behavior again. With this change Django will bail out in with a "duplicate relation / table" error instead. Thanks Carl Meyer and Tim Graham for the documentation update, report and review.
2015-02-13Fixed #24295 -- Allowed ModelForm meta to specify form field classes.Loic Bistuer
Thanks Carl Meyer and Markus Holtermann for the reviews.
2015-02-13Fixed #24332 -- Fixed contrib.sites create_default_site() when 'default' ↵Tim Graham
DATABASES is empty.
2015-02-13Fixed #24319 -- Added validation for UUID model fieldJosh Smeaton
2015-02-12Fixed #24333 -- Fixed admin history view crash with non-integer slug.Tim Graham
2015-02-12Refs #24215 -- Prevented pending lookup pollution by abstract models.Simon Charette
2015-02-12Fixed #17716 -- Prevented include('...', app_name='...') without a namespace.Tim Graham
2015-02-12Subclassed template.Node instead of Node for consistency.Nik Nyby
2015-02-12Fixed #24161 -- Stored the user primary key as a serialized value in the ↵Tim Graham
session. This allows using a UUIDField primary key along with the JSON session serializer. Thanks to Trac alias jamesbeith for the report and Simon Charette for the initial patch.
2015-02-12Fixed #24321 -- Improved `utils.http.same_origin` compliance with RFC6454Lukas Klein
2015-02-12Refs #14030 -- Improved expression support for python valuesJosh Smeaton
2015-02-11Refs #14497 -- Handled empty readonly admin FileFieldsCollin Anderson