Closed DMASCoreDeclan closed 9 months ago
Acceptance criteria 1 A new User Wendy was created and their Profile was also created:
Acceptance criteria 2 Previously, this code was required:
However, the code now produces the same result when the DTL is removed:
As the Site Owner I can ensure User Profiles have a default image so that a User has a default Profile that they can change in profile.html when they are logged in
At presend users/models appends a CloudinaryField to the User model. When used from admin/users/profile/add/, you can create a Profile which loads a default image if no specific image is added. The default image, 'placeholder.jpg' is stored in Cloudinary. However the profile is currently created by a manual process, I want to automate this.
Acceptance criteria 1 placeholder.jpg is placed in the profile and displayed in profile.html once the user registration process is complete
Acceptance criteria 2 Ensure this code is no longer needed {% if user.profile.profile_picture.url %} <img class="rounded-circle account-img" src="{{ user.profile.profile_picture.url }}> {% else %} img class="rounded-circle account-img" src=" https://res.cloudinary.com/dlzmqu24r/image/upload/v1706613373/placeholder.jpg
{% endif %}