series of tests added with built-in django test support

This commit is contained in:
pacnpal
2024-11-05 18:40:39 +00:00
parent ba226c861a
commit 2e8a725933
60 changed files with 2108 additions and 274 deletions

View File

@@ -203,12 +203,12 @@ class PhotoSubmission(models.Model):
# Create the approved photo
Photo.objects.create(
user=self.user,
uploaded_by=self.user,
content_type=self.content_type,
object_id=self.object_id,
image=self.photo,
caption=self.caption,
date_taken=self.date_taken
is_approved=True
)
self.save()
@@ -231,12 +231,12 @@ class PhotoSubmission(models.Model):
# Create the approved photo
Photo.objects.create(
user=self.user,
uploaded_by=self.user,
content_type=self.content_type,
object_id=self.object_id,
image=self.photo,
caption=self.caption,
date_taken=self.date_taken
is_approved=True
)
self.save()