Code

Ticket #10637: 10637.diff

File 10637.diff, 1.2 KB (added by ramiro, 5 years ago)
Line 
1diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
2--- a/docs/ref/django-admin.txt
3+++ b/docs/ref/django-admin.txt
4@@ -293,6 +293,8 @@
5 ``inspectdb`` works with PostgreSQL, MySQL and SQLite. Foreign-key detection
6 only works in PostgreSQL and with certain types of MySQL tables.
7 
8+.. django-admin:: loaddata
9+
10 loaddata <fixture fixture ...>
11 ------------------------------
12 
13diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt
14--- a/docs/topics/testing.txt
15+++ b/docs/topics/testing.txt
16@@ -944,9 +944,10 @@
17     Fixtures with other names can always be installed manually using the
18     ``manage.py loaddata`` command.
19 
20-Once you've created a fixture and placed it somewhere in your Django project,
21-you can use it in your unit tests by specifying a ``fixtures`` class attribute
22-on your ``django.test.TestCase`` subclass::
23+Once you've created a fixture and placed it in an appropiate location (see the
24+:djadmin:`loaddata documentation<loaddata>` for more details) you can use it in
25+your unit tests by specifying a ``fixtures`` class attribute on your
26+``django.test.TestCase`` subclass::
27 
28     from django.test import TestCase
29     from myapp.models import Animal