Browse Source

only set avatar to gravatar if none has been set

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
eb1c388159
  1. 2
      pyweb/mumble/models.py

2
pyweb/mumble/models.py

@ -645,7 +645,7 @@ class MumbleUser( models.Model ):
self.password = '' self.password = ''
# If enabled (and possible), set Gravatar as default Avatar # If enabled (and possible), set Gravatar as default Avatar
if settings.USE_GRAVATAR and self.gravatar:
if not self.hasTexture and settings.USE_GRAVATAR and self.gravatar:
self.setTextureFromUrl( self.gravatar ) self.setTextureFromUrl( self.gravatar )
return models.Model.save( self ) return models.Model.save( self )

Loading…
Cancel
Save