summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2015-01-16Bumped version to 1.8 alpha 1.1.8a1Tim Graham
2015-01-16Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn
Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report.
2015-01-16Fixed #24146 -- Fixed a missing fields regression in admin checks.Collin Anderson
This allows using get_field() early in the app loading process. Thanks to PirosB3 and Tim Graham.
2015-01-16Fixed #24099 -- Removed contenttype.name deprecated fieldClaude Paroz
This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.
2015-01-16Tested that geo aggregates support slicingSander Smits
Refs #15101. Patch slightly reworked by Claude Paroz.
2015-01-16Fixed #24152 -- Deprecated GeoQuerySet aggregate methodsClaude Paroz
Thanks Josh Smeaton and Tim Graham for the reviews.
2015-01-16Simplified a bit GeoAggregate classesClaude Paroz
Thanks Josh Smeaton for the review. Refs #24152.
2015-01-15Fixed #24135 -- Made RenameModel rename many-to-many tables.Tim Graham
Thanks Simon and Markus for reviews.
2015-01-15Fixed #23712 -- Fixed KeyError with BaseForm._html_output()Yang Liu
2015-01-15Refs #24075 -- Silenced needless call_command output while running testsMarkus Holtermann
Thanks Tim Graham for the report
2015-01-15Replaced inner functions by class methods.Simon Charette
refs #24031 Thanks to Tim Graham and Michał Modzelewski for the review.
2015-01-14Moved check_aggregate_support to BaseSpatialOperationsClaude Paroz
2015-01-14Fixed incorrect error message in Options.get_fields()Collin Anderson
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-14Fixed #24075 -- Prevented running post_migrate signals when unapplying ↵Markus Holtermann
initial migrations of contenttypes and auth Thanks Florian Apolloner for the report and Claude Paroz and Tim Graham for the review and help on the patch.
2015-01-14Fixed #24147 -- Prevented managers leaking model during migrationsMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-14Removed unused importClaude Paroz
2015-01-13Fixed DoS possibility in ModelMultipleChoiceField.Tim Graham
This is a security fix. Disclosure following shortly. Thanks Keryn Knight for the report and initial patch.
2015-01-13Fixed is_safe_url() to handle leading whitespace.Tim Graham
This is a security fix. Disclosure following shortly.
2015-01-13Stripped headers containing underscores to prevent spoofing in WSGI environ.Carl Meyer
This is a security fix. Disclosure following shortly. Thanks to Jedediah Smith for the report.
2015-01-13Fixed #24136 -- Prevented crash when convert_extent input is NoneClaude Paroz
Thanks Max Demars for the report.
2015-01-12Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski
2015-01-13Fixed test failures in Oracle introspectionShai Berger
Refs #17785
2015-01-12Fixed #24138 -- Added modelform_factory to __all__.Josh Schneier
2015-01-13Fixed #24060 -- Added OrderBy ExpressionsJosh Smeaton
2015-01-12Fixed #24133 -- Replaced formatting syntax in success_url placeholdersClaude Paroz
Thanks Laurent Payot for the report, and Markus Holtermann, Tim Graham for the reviews.
2015-01-12Fixed #24124 (again) -- Updated tests with new default context_processors.Aymeric Augustin
Thanks Collin for the review.
2015-01-12Avoided exceptions in admindocs' template detail view.Aymeric Augustin
This is marginally better than crashing when several Django template engines are configured in a project. Refs #24125.
2015-01-12Avoided exceptions in a non-critical check in the admin.Aymeric Augustin
This change makes it possible to configure several Django template engines in a project and still use the admin. On the flip side the check is silently skipped when no Django template engine is configured.
2015-01-12Made debug views not crash when there isn't a default template engine.Aymeric Augustin
2015-01-12Accounted for multiple template engines in template responses.Aymeric Augustin
2015-01-12Deprecated passing a Context to a generic Template.render.Aymeric Augustin
A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
2015-01-12Rewrapped TemplateSyntaxError in Jinja2 backend.Aymeric Augustin
Changed import style to avoid confusion between Django's and Jinja2's APIs.
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2015-01-12Fixed #24089 -- Added check for when ModelAdmin.fieldsets[1]['fields'] isn't ↵Muthiah Annamalai
a list/tuple.
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #24124 -- Changed context_processors in the default settings.pyCollin Anderson
2015-01-12Fixed #24123 -- Used all available migrations to generate the initial ↵Markus Holtermann
migration state Thanks Collin Anderson for the input when creating the patch and Tim Graham for the review.
2015-01-12Made Django's templates get their own LANGUAGE_* variables.Collin Anderson
Refs #24117
2015-01-12Fixed #9893 -- Allowed using a field's max_length in the Storage.Pavel Shpilev
2015-01-12Fixed #24118 -- Added --debug-sql option for tests.Marc Tamlyn
Added a --debug-sql option for tests and runtests.py which outputs the SQL logger for failing tests. When combined with --verbosity=2, it also outputs the SQL for passing tests. Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and discussion.
2015-01-11Removed supports_binary_field flag as all backends support themClaude Paroz
It was mainly for MySQL on Python 3, but now the current recommended MySQL driver for Python 3 (mysqlclient) does support binary fields, it is unneeded. Refs #20377.
2015-01-11Fixed #23913 -- Deprecated the `=` comparison in `if` template tag.Ola Sitarska
2015-01-11Refs #24110 -- Added a more descriptive release note and fixed a spelling ↵Markus Holtermann
mistake.
2015-01-10Fixed #24110 -- Rewrote migration unapply to preserve intermediate statesMarkus Holtermann
2015-01-10Fixed #24114 -- Improved error message in GEOSGeometry constructorClaude Paroz
2015-01-10Fixed #13165 -- Added edit and delete links to admin foreign key widgets.Simon Charette
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
2015-01-10Fixed #24001 -- Added range fields for PostgreSQL.Marc Tamlyn
Added support for PostgreSQL range types to contrib.postgres. - 5 new model fields - 4 new form fields - New validators - Uses psycopg2's range type implementation in python
2015-01-10Move % addition to lookups, refactor postgres lookups.Marc Tamlyn
These refactorings making overriding some text based lookup names on other fields (specifically `contains`) much cleaner. It also removes a bunch of duplication in the contrib.postgres lookups.
2015-01-10Fixed #23967 -- Added formats for GreekSerafeim Papastefanos