Opened 10 years ago

Closed 18 months ago

Last modified 18 months ago

#23528 closed Bug (fixed)

django.db.migrations.swappable_dependency not documented

Reported by: Shai Berger Owned by: Bhuvnesh
Component: Documentation Version: 1.7
Severity: Normal Keywords: migrations
Cc: Natt Piyapramote Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As far as I could see, django.db.migrations.swappable_dependency (which is used in migrations whenever the operations need to create a FK to a swappable model) is not documented at all. It needs to be documented because, although it usually shows up in generated code, that code is considered as user-code and should be possible to write by hand as well.

Change History (13)

comment:1 by Sergey Fedoseev, 7 years ago

Cc: Sergey Fedoseev added

comment:2 by Natt Piyapramote, 7 years ago

Cc: Natt Piyapramote added

comment:3 by Bhuvnesh, 19 months ago

Owner: changed from nobody to Bhuvnesh
Status: newassigned

comment:4 by Sergey Fedoseev, 19 months ago

Cc: Sergey Fedoseev removed

comment:5 by Mariusz Felisiak, 18 months ago

Has patch: set

comment:6 by Mariusz Felisiak, 18 months ago

Patch needs improvement: set

comment:7 by Mariusz Felisiak, 18 months ago

Patch needs improvement: unset

comment:8 by Mariusz Felisiak, 18 months ago

Patch needs improvement: set

comment:9 by Mariusz Felisiak, 18 months ago

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:10 by Mariusz Felisiak <felisiak.mariusz@…>, 18 months ago

Resolution: fixed
Status: assignedclosed

In 7d96ce68:

Fixed #23528 -- Doc'd django.db.migrations.swappable_dependency().

comment:11 by Mariusz Felisiak <felisiak.mariusz@…>, 18 months ago

In 92ad551:

[4.2.x] Fixed #23528 -- Doc'd django.db.migrations.swappable_dependency().

Backport of 7d96ce68ae2c1bab1f2ab64ddc2b2c6004278af0 from main

comment:12 by GitHub <noreply@…>, 18 months ago

In 1136aa50:

Refs #23528 -- Made cosmetic edits to swappable_dependency() docs.

comment:13 by Mariusz Felisiak <felisiak.mariusz@…>, 18 months ago

In 66d9fa4:

[4.2.x] Refs #23528 -- Made cosmetic edits to swappable_dependency() docs.

Backport of 1136aa5005f0ae70fea12796b7e37d6f027b9263 from main

Note: See TracTickets for help on using tickets.
Back to Top