Code

Opened 2 years ago

Closed 22 months ago

#17687 closed Bug (fixed)

LayerMapping ignores database routers

Reported by: nosamanuel@… Owned by: nobody
Component: GIS Version: 1.4-alpha-1
Severity: Normal Keywords: gis router multidb
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The LayerMapping class from contrib.gis currently supports multiple databases via a using argument that defaults to DEFAULT_DB_ALIAS. This fails when mapping a model that is routed to a non-default database.

Attachments (1)

pull-112.patch (4.2 KB) - added by nosa_manuel 2 years ago.
From Github pull request #112

Download all attachments as: .zip

Change History (5)

comment:1 Changed 2 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Version changed from 1.3-rc1 to 1.3

Changed 2 years ago by nosa_manuel

From Github pull request #112

comment:2 Changed 2 years ago by nosa_manuel

  • Has patch set
  • Version changed from 1.3 to 1.4-alpha-1

comment:3 Changed 2 years ago by claudep

  • Component changed from Uncategorized to GIS
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug

comment:4 Changed 22 months ago by Claude Paroz <claude@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 7e32dab3a64570c67993d38b5bc25c9bd1f7455e:

Fixed #17687 -- Made LayerMapping router-aware

Thanks nosamanuel@… for the report and the initial patch.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.