mirror of
https://github.com/fergalmoran/dss.git
synced 2026-03-06 13:53:59 +00:00
Testing blank profile names
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user