diff --git a/pairent_backend/pairent_app/factories.py b/pairent_backend/pairent_app/factories.py index e6d046a..f1534b5 100644 --- a/pairent_backend/pairent_app/factories.py +++ b/pairent_backend/pairent_app/factories.py @@ -134,4 +134,14 @@ class UserFactory(factory.django.DjangoModelFactory): openid_addr = OpenID_Address(); openid_id = UUID(); - photo_provider = Random(0,0,0, ['VVSU', 'GRAVATAR']); \ No newline at end of file + photo_provider = Random(0,0,0, ['VVSU', 'GRAVATAR']); + +def fake(size: int): + """ + This method is designed to be conveniently used within a + django shell, like this: + >>> from pairent_app.factories import fake; + >>> fake(42); + """ + ApartmentFactory.create_batch(size); + UserFactory.create_batch(size); \ No newline at end of file