Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created September 13, 2022 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/64309b581b4960045e7e8a424d304e44 to your computer and use it in GitHub Desktop.
Save brunomichetti/64309b581b4960045e7e8a424d304e44 to your computer and use it in GitHub Desktop.
create_list = (
User(
email="email1@mail.com",
name="User 1",
username="username_1",
date_of_birth=datetime(year=1990, month=10, day=25),
),
User(
email="email2@mail.com",
name="User 2",
username="username_2",
date_of_birth=datetime(year=1982, month=1, day=5),
),
User(
email="email3@mail.com",
name="User 3",
username="username_3",
date_of_birth=datetime(year=1974, month=5, day=16),
),
)
User.objects.bulk_create(create_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment