Skip to content

Commit

Permalink
add locale to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobin Brown committed Feb 4, 2020
1 parent 7bba127 commit 1dc3882
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ Django-seed does not populate auto-incremented primary keys, instead ``seeder.ex
<class 'faker.django.tests.Game'>: [1, 2, 3, 4, 5]
}
You may specify a different locale by passing it in the constructor of the seeder. Defaults to `settings.LANGUAGE_CODE`

.. code-block:: python
seeder = Seed.seeder(locale='sv_SE')
seeder.faker.city() # 'Västerås'
-----
Tests
Expand Down

0 comments on commit 1dc3882

Please sign in to comment.