mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 08:31:08 -05:00
series of tests added with built-in django test support
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user