Skip to content

Commit a12f48b

Browse files
committed
fixed print string
1 parent 9045b16 commit a12f48b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

recommender_webapp/models.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,9 @@ class Rating(models.Model):
166166
place = models.ForeignKey(Place, on_delete=models.PROTECT, blank=False)
167167
rating = models.IntegerField(blank=False, default=DEFAULT_RATING)
168168

169-
# class Meta:
170-
# unique_together = ('user', 'mood', 'companionship', 'place')
171169

172170
def __str__(self):
173-
return str(self.user.email) + '|' + str(self.mood) + '|' + str(self.companionship) \
171+
return str(self.user.user.email) + '|' + str(self.mood) + '|' + str(self.companionship) \
174172
+ '|' + str(self.place.placeId) + '|' + str(self.rating)
175173

176174

0 commit comments

Comments
 (0)