factories.py
1.88 KB
-
Modify UserFactory to create a profile for the user · 0f7378a1
This allows specification of profile parameters when creating a user. Because the profile contents are always accessed from the database, the user must be saved to the database before the profile is created. This means that the profile cannot be created if the user is merely being built (and not saved) rather than created.
Greg Price committed