summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-01Fixed #25320 -- Reverted ManyToManyField.null to False for backwards ↵Tim Graham
compatibility. Thanks Tom Christie for the report and review.
2015-08-31Rewrote form widget tests as proper unittests.Preston Timmons
This is preparation for landing the template-based widget rendering patch and goes a long way to making these tests more useful for future development. The old doctest heritage is strong here.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-31Refs #24121 -- Added a repr() to gis.GeoIP and gis.GeoIP2.Keryn Knight
2015-08-31Refs #24121 -- Added repr() to LazySettings, Settings, and UserSettingsHolder.Keryn Knight
2015-08-31Fixed #25289 -- Updated admin's jQuery to 2.1.4.Tim Graham
2015-08-31Removed unnecessary DBCacheTests.test_clear_commits_transaction test.Adam Chainz
Was added in 44164c5c308da32a804dfb03ce0bffde2a6b4c56 but the transaction.commit_unless_managed() line was removed in ba5138b1c0253fcf390b7509ad7b954117b3be88; thus the test does nothing but check that clear() runs.
2015-08-31Cleaned up example migration files in docsTyson Clugg
2015-08-31Fixed #25259 -- Added comments to header of generated migration filesTyson Clugg
2015-08-31Fixed #25324 -- Registered ModelAdmin instances with @admin.register decoratorY3K
2015-08-31Fixed #25252 -- Added friendly error message on incorrect .select_related() useY3K
Using select_related() after .values() or .values_list() is not possible because .values() or .values_list() already got the values they need.
2015-08-31Clarified 404.html usage, excplicitly stated that it's used when DEBUG is FalseDavid Sanders
Thanks to Keryn Knight, Curtis Maloney and Tim Graham for their reviews.
2015-08-29Made the autoreloader survive all exceptions.Aymeric Augustin
Refs #24704.
2015-08-29Fixed #24704 -- Made the autoreloader survive SyntaxErrors.Aymeric Augustin
With this change, it's expected to survive anything except errors that make it impossible to import the settings. It's too complex to fallback to a sensible behavior with a broken settings module. Harcoding things about runserver in ManagementUtility.execute is atrocious but it's the only way out of the chicken'n'egg problem: the current implementation of the autoreloader primarily watches imported Python modules -- and then a few other things that were bolted on top of this design -- but we want it to kick in even if the project contains import-time errors and django.setup() fails. At some point we should throw away this code and replace it by an off-the-shelf autoreloader that watches the working directory and re-runs `django-admin runserver` whenever something changes.
2015-08-29Ensured gen_filenames() yields native strings.Aymeric Augustin
This also fixes a test failure on Python 2 when Django is installed in a non-ASCII path. This problem cannot happen on Python 3.
2015-08-29Refactored autoreload tests.Aymeric Augustin
* Added helpers to test uncached and cached access. * Fixed test_project_root_locale: it duplicated test_locale_paths_setting. * Rewrote test_only_new_files: test more cases.
2015-08-29Accounted for error files in the autoreloader.Aymeric Augustin
* When some old files contain errors, the second call to gen_filenames() should return them. * When some new files contain errors, the first call to gen_filenames(only_new=True) should return them.
2015-08-29Fixed #25262 -- Removed the enable_comments field from FlatPageAdmin.Y3K
2015-08-28Fixed #17375 -- Changed makemessages to use xgettext with --files-fromSergey Kolosov
Changed the way makemessages invokes xgettext from one call per translatable file to one call per locale directory (using --files-from). This allows to avoid https://savannah.gnu.org/bugs/index.php?35027 and, as a positive side effect, speeds up localization build.
2015-08-28Fixed #25323 -- Fixed selenium test failures with chromedriver 2.18.Tim Graham
2015-08-28Fixed #25318 -- Made SILENCED_SYSTEM_CHECKS suppress all messages.Tim Graham
Previously, messages of ERROR level or higher were printed to the console.
2015-08-28Fixed #25322 -- Lazily compiled core.validators regular expressions.Jonas Haag
This speeds up import of 'django.core.validators' which can save a few hundred milliseconds when importing the module for the first time. It can be a significant speedup to the django-admin command.
2015-08-28Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes ↵Tim Graham
with a model reverse accessor.
2015-08-28Refs #24590 -- Ensured isolation between autodetector testsMarkus Holtermann
Fixed a regression introduced in e1427cc609fa6ab247501b101cfb3c0092aba55b when running tests in reverse order.
2015-08-27Refs #20597 -- Fixed spelling of HiDPI.Tim Graham
2015-08-27Fixed #20597 -- Replaced admin GIF/PNG icons by SVGelky
2015-08-27Fixed #22634 -- Made the database-backed session backends more extensible.Sergey Kolosov
Introduced an AbstractBaseSession model and hooks providing the option of overriding the model class used by the session store and the session store class used by the model.
2015-08-27Removed historical note about session serialization.Tim Graham
2015-08-27Refs #2495 -- Documented that MySQL cannot have TextField(unique=True).Tim Graham
2015-08-27Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey.Alex Hill
2015-08-27Fixed #24590 -- Cached calls to swappable_setting.Markus Holtermann
Moved the lookup in Field.swappable_setting to Apps, and added an lru_cache to cache the results. Refs #24743 Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric Augustin and Tim Graham for the review.
2015-08-27Fixed #25280 -- Properly checked regex objects for equality to prevent ↵Markus Holtermann
infinite migrations Thanks Sayid Munawar and Tim Graham for the report, investigation and review.
2015-08-26Fixed #25308 -- Made MigrationQuestioner respect MIGRATION_MODULES setting.Jeremy Satterfield
2015-08-26Added 'subtransactions' to spelling wordlist.Tim Graham
2015-08-25Fixed #25311 -- Removed vague language about "partial commits" from docs.Tim Graham
2015-08-25Fixed #14217 -- Added validation for field name collision when using model ↵sarthakmeh
inheritance.
2015-08-25Updated PROJ.4 link to new GitHub wiki.David Sanders
2015-08-25Fixed #25309 -- Corrected that ATOMIC_REQUESTS applies per view not per request.Tim Graham
2015-08-25Fixed #25295 -- Restored 'no active translation' after language overrideClaude Paroz
Thanks David Nelson Adamec for the report and Tim Graham for the review.
2015-08-24Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s ↵Maxime Lorant
when Referer = URL.
2015-08-24Fixed #23727 -- Inhibited the post_migrate signal when using ↵Tommy Beadle
serialized_rollback. When using a TransactionTestCase with serialized_rollback=True, after creating the database and running its migrations (along with emitting the post_migrate signal), the contents of the database are serialized to _test_serialized_contents. After the first test case, _fixture_teardown() would flush the tables but then the post_migrate signal would be emitted and new rows (with new PKs) would be created in the django_content_type table. Then in any subsequent test cases in a suite, _fixture_setup() attempts to deserialize the content of _test_serialized_contents, but these rows are identical to the rows already in the database except for their PKs. This causes an IntegrityError due to the unique constraint in the django_content_type table. This change made it so that in the above scenario the post_migrate signal is not emitted after flushing the tables, since it will be repopulated during fixture_setup().
2015-08-24Fixed #25047 -- Improved "Conflicting migrations" error message.Tim Graham
2015-08-22Tweak some examples.Aymeric Augustin
"Area man/woman" is confusing to people not familiar with the conventions of American journalism (like me).
2015-08-22Recommend relative imports within Django components.Aymeric Augustin
django-developers thread: https://groups.google.com/d/msg/django-developers/11XvmVdx58w/sFrF0pL8LTgJ
2015-08-22Fixed #25300 -- Added unit tests for BoundField.id_for_labelMaxime Lorant
2015-08-22Forwardported release note for refs #25040.Tim Graham
2015-08-21Removed BaseForm._raw_value().Tim Graham
Unused since efb0100ee67931329f17bc9988ecd5f0619cea14.
2015-08-21Fixed #25284 -- Documented removal of implicit QuerySet __in lookups.Tim Graham
2015-08-20Refs #24914 -- Added docs for more auth mixin methods.Tim Graham
2015-08-20Fixed typo in tests/migrations/test_autodetector.py.Tim Graham