summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2014-02-06Bumped version number for 1.7a21.7a2Jacob Kaplan-Moss
2014-02-06Fixed #17713 -- Renamed BaseDatabaseFeatures.allows_primary_key_0 to ↵Vajrasky Kok
allows_auto_pk_0. MySQL does allow primary key with value 0. It only forbids autoincrement primary key with value 0. Thanks Claude Paroz for the report.
2014-02-06Fixed #17005 -- Added CurrentSiteMiddleware to set the current site on each ↵Christopher Medrela
request. Thanks jordan at aace.org for the suggestion.
2014-02-06Fixed #21731 -- Made javascript_quote escapes '</'.Vajrasky Kok
2014-02-05Revert "Fixed #20296 -- Allowed SafeData and EscapeData to be lazy"Baptiste Mispelon
This reverts commit 2ee447fb5f8974b432d3dd421af9a242215aea44. That commit introduced a regression (#21882) and didn't really do what it was supposed to: while it did delay the evaluation of lazy objects passed to mark_safe(), they weren't actually marked as such so they could end up being escaped twice. Refs #21882.
2014-02-05Fixed ImportError when running contrib.gis tests without libgeos installed.Baptiste Mispelon
2014-02-05Simplified signal code.Florian Apolloner
Refs #21952
2014-02-05Fixed #21952 -- signals deadlock due to locking + weakref interactionAnssi Kääriäinen
2014-02-05Fix pep8 violation in migration template.Marc Tamlyn
2014-02-04Removed two imports which are now unusedAlex Gaynor
2014-02-04Removed the this_is_the_login_form hackClaude Paroz
Refs #21911. Now that we have a more traditional login form, we don't need any more a special field telling us we are dealing with the login form.
2014-02-04Fixed #21911 -- Made admin views redirect to login when neededClaude Paroz
Historically, the Django admin used to pass through the request from an unauthorized access to the login view directly. Now we are using a proper redirection, which is also preventing inadvertantly changing data when POSTing login data to an admin view when user is already authorized. Thanks Marc Tamlyn and Tim Graham for the reviews.
2014-02-04Made staff_member_required redirect to loginClaude Paroz
Refs #21911.
2014-02-04Fixed #21748 -- join promotion for negated AND conditionsAnssi Kääriäinen
Made sure Django treats case .filter(NOT (a AND b)) the same way as .filter((NOT a OR NOT b)) for join promotion.
2014-02-03Moved a GoogleMap testClaude Paroz
2014-02-03Fixed #21934 -- Added unicode support in GoogleMap classDavid Fischer
2014-02-02Make mysql's CursorWrapper a contextmanager.Michael Manfre
2014-02-02Removed an unused import which snuck in.Alex Gaynor
2014-02-02Used the proxied call to staticfiles_storage.urlThomas Grainger
2014-02-02Fixed #21930 -- Only import add_srs_entry if GDAL is installedClaude Paroz
Fixed regression introduced by fabc678f93. Thanks Michael Manfre for the report.
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2014-02-02Made SQLCompiler.execute_sql(result_type) more explicit.Michael Manfre
Updated SQLUpdateCompiler.execute_sql to match the behavior described in the docstring; the 'first non-empty query' will now include all queries, not just the main and first related update. Added CURSOR and NO_RESULTS result_type constants to make the usages more self documenting and allow execute_sql to explicitly close the cursor when it is no longer needed.
2014-02-01Avoided importing models from django.contrib.admin.Aymeric Augustin
Fixed #21923. Refs #21719.
2014-02-01Suppressed the `if Site._meta.installed` pattern.Aymeric Augustin
The purpose of this construct is to test if the django.contrib.sites application is installed. But in Django 1.9 it will be forbidden to import the Site model when the django.contrib.sites application isn't installed. No model besides Site used this pattern. Refs #21719, #21923.
2014-01-30Fixed #21907 -- Fixed add_srs_entry for Spatialite >= 4Claude Paroz
Thanks dfunckt for the report.
2014-01-30Added new srs test and various cleaningClaude Paroz
2014-01-30Made Oracle introspect FloatFields correctlyShai Berger
Broke InspectDBTestCase.test_field_types in two: - a test_number_field_types, which now passes on Oracle too - a test_field_types, for all non-numeric fields, which is still expected to fail Also made some pep8 fixes in the tests file. Refs #19884 Thanks Tim Graham for review.
2014-01-29Made Oracle introspect boolean fieldsShai Berger
Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean Refs #19884
2014-01-28Fixed #21883 -- Added six.moves.xrange importAnssi Kääriäinen
When moving code around from sql.where to lookups six.moves.xrange import was forgotten. The xrange import is needed on Python 3.
2014-01-28Fixed #21849 -- Included the count of silenced system checks in output.Tim Graham
2014-01-28Fixed #21853 -- Fixed Manager.__module__ to properly return ↵Loic Bistuer
'django.db.models.manager'. The combination of BaseManager.from_queryset() and RenameMethodsBase results in Manager.__module__ having the wrong value. This can be an issue when trying to pickle the Manager class.
2014-01-27Fixed #21874 -- Require Django applications to have a filesystem path.Carl Meyer
Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion.
2014-01-27Removed TransRealMixin.Aymeric Augustin
Fixed #21688. Refs https://github.com/django/django/pull/1147.
2014-01-27Removed superfluous uses of TransRealMixin.Aymeric Augustin
The translation.override context manager cleans up after itself. As a consequence this mixin isn't needed any more in many cases.
2014-01-27Minor cleanup.Aymeric Augustin
2014-01-27Fixed #21872: Not detecting dependencies from M2M fieldsAndrew Godwin
2014-01-26Fixed #21823 -- Upgraded six to 1.5.2Tim Graham
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-26Fixed some missing/extraneous new line warnings.Simon Charette
2014-01-26Fixed #21866 -- Replaced "COMMIT" in managmement command SQL with backend hook.Wojciech Banaś
2014-01-26Fixed #21880 -- Added missing items to django.utils.timezone.__all__.Aymeric Augustin
Thanks Wim for the report.
2014-01-26Fixed #21877 -- Renamed django.apps.base to config.Aymeric Augustin
2014-01-26Took advantage of the new get_model API. Refs #21702.Aymeric Augustin
2014-01-26Fixed #21702 -- get_model('app_label.ModelName').Aymeric Augustin
Also added tests for get_model.
2014-01-26Moved RequestSite and get_current_site.Aymeric Augustin
Following the app-loading refactor, these objects must live outside of django.contrib.sites.models because they must be available without importing the django.contrib.sites.models module when django.contrib.sites isn't installed. Refs #21680. Thanks Carl and Loic for reporting this issue.
2014-01-25Moved sys.path-extending decorator to django.test.utils and used throughout ↵Carl Meyer
test suite. Thanks Aymeric for the suggestion.
2014-01-25Fixed #17304 -- Allow single-path and configured-path namespace packages as ↵Carl Meyer
apps. Also document the conditions under which a namespace package may or may not be a Django app, and raise a clearer error message in those cases where it may not be. Thanks Aymeric for review and consultation.
2014-01-25Fixed #21873 -- Removed duplicate import.Aymeric Augustin
Thanks Sephi for the report.
2014-01-25Merge pull request #2211 from carljm/t21867Jannis Leidel
Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.