license: better variable name

remotes/origin/license
Andrey 9 years ago
parent 60775122e2
commit cea1634d93
  1. 4
      project/customer/utils.py

@ -12,7 +12,7 @@ SUPPORT_EMAIL = getattr(settings, 'SUPPORT_EMAIL')
def check_one_profile(profile, License, now_, manual=False):
profile_is_active = profile.active
profile_was_active = profile.active
licenses = License.objects.filter(company=profile, date_from__lte=now_, date_to__gte=now_,
status__in=[consts.LICENSE_TEST_PERIOD, consts.LICENSE_PAID, consts.LICENSE_ACTIVE], deleted=False)
@ -27,7 +27,7 @@ def check_one_profile(profile, License, now_, manual=False):
user_email = profile.users.get().email
if profile.active and not profile_is_active:
if profile.active and not profile_was_active:
template_name = 'myauth/license_activated.txt'
subject = u'Документор: Профиль активирован'
dict_context = {

Loading…
Cancel
Save