Testing blank profile names

This commit is contained in:
Fergal Moran
2013-04-22 19:11:18 +01:00
parent a1d213f024
commit 94789d1c60
2 changed files with 1 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class ActivityResource(BackboneCompatibleResource):
def dehydrate(self, bundle):
try:
if bundle.obj.user is not None:
if bundle.obj.user is not None and bundle.obj.user.get_profile() is not None:
user_name = bundle.obj.user.get_profile().nice_name()
user_image = bundle.obj.user.get_profile().get_small_profile_image()
user_profile = bundle.obj.user.get_profile().get_profile_url()

View File

@@ -38,7 +38,6 @@ window.MixListItemView = Backbone.View.extend({
com.podnoms.player.drawTimeline(
$('#player-timeline-' + id, this.el),
$('#mix-container-' + id, this.el),
this.model.get('duration'));
var totalDuration = moment.duration(this.model.get('duration'), "seconds");