Changes between Version 1 and Version 2 of Ticket #30071, comment 1
- Timestamp:
- Jan 9, 2019, 10:01:35 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30071, comment 1
v1 v2 1 1 [https://github.com/django/django/pull/10813 PR] 2 3 This change moves the explicit check before the attempt to use the key, 4 so that no `KeyError` is ever raised for `DEFAULT_DB_ALIAS`. It adds 5 a test for this case, and also adds a test for the case where the 6 default db is explicitly set to an empty dict.