Commit 615227a2 authored by Daniel W Bond's avatar Daniel W Bond

missing some of the py3 prints still, somehow

parent a0fb4c4a
......@@ -32,7 +32,7 @@ class DetailStudent(LoginRequiredMixin, DetailView):
student_ratings = Rating.objects.filter(listing__poster=self.get_object())
if student_ratings:
student_stars = [int(rating.stars) for rating in student_ratings]
print student_stars
print(student_stars)
average_stars = sum(student_stars)/float((len(student_stars)))
else:
average_stars = None
......@@ -100,7 +100,7 @@ class StudentRatings(LoginRequiredMixin, DetailView):
# copied code!
if student_ratings:
student_stars = [int(rating.stars) for rating in student_ratings]
print student_stars
print(student_stars)
average_stars = sum(student_stars)/float((len(student_stars)))
else:
average_stars = None
......
......@@ -75,7 +75,7 @@ class ListingForm(forms.ModelForm):
def clean(self):
cleaned_data = super(ListingForm, self).clean()
print cleaned_data
print(cleaned_data)
return super(ListingForm, self).clean()
......
......@@ -57,11 +57,11 @@ class CreateListing(LoginRequiredMixin, FormValidMessageMixin, CreateView):
user_image = Image.open(form.instance.photo)
image_format = user_image.format
print user_image
print(user_image)
width, height = user_image.size
print user_image.size
print width, "width"
print height, "height"
print(user_image.size)
print(width, "width")
print(height, "height")
maxsize = (2560, 1920)
# five megapixels is 2560x1920
if (width > 2560) or (height > 1920):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment