Kaydet (Commit) 9ec77f3d authored tarafından Stefan R. Filipek's avatar Stefan R. Filipek Kaydeden (comit) Tim Graham

Fixed #29349 -- Doc'd the default behavior of router.allow_relation().

üst acf9d640
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment