mirror of
https://github.com/django/django.git
synced 2025-07-22 18:49:25 +00:00
[2.0.x] Fixed #29349 -- Doc'd the default behavior of router.allow_relation().
Backport of 9ec77f3d6633691c9bbf31d10af2313689170c85 from master
This commit is contained in:
parent
f1435bf680
commit
9f2586b964
@ -163,6 +163,9 @@ A database Router is a class that provides up to four methods:
|
||||
used by foreign key and many to many operations to determine if a
|
||||
relation should be allowed between two objects.
|
||||
|
||||
If no router has an opinion (i.e. all routers return ``None``), only
|
||||
relations within the same database are allowed.
|
||||
|
||||
.. method:: allow_migrate(db, app_label, model_name=None, **hints)
|
||||
|
||||
Determine if the migration operation is allowed to run on the database with
|
||||
|
Loading…
x
Reference in New Issue
Block a user