prevent quota emails on dev servers
in addition to beta
@@ -218,7 +218,7 @@ def send_over_quota_emails():
msg_str += '\n\nHydroShare Support'
subject = 'Quota warning'
- if settings.DEBUG or "beta" in Site.objects.get_current():
+ if settings.DEBUG or "www.hydroshare.org" not in Site.objects.get_current().domain:
logger.info("quota warning email not sent out on debug server but logged instead: "
"{}".format(msg_str))
else:
