cleanup up some unused code/comments, and simplify the license migration

This commit is contained in:
Ryan Petrello
2020-10-22 11:39:42 -04:00
parent ef43d85271
commit 3bb930c769
5 changed files with 3 additions and 42 deletions

View File

@@ -2,16 +2,11 @@
import logging
from django.conf import settings
from awx.main.utils.licensing import Licenser
logger = logging.getLogger('awx.conf.settings')
__all__ = ['clear_old_license']
def clear_old_license(apps, schema_editor):
# Setting = apps.get_model('conf', 'Organization')
# setting.objects.filter(key=LICENSE)
licenser = Licenser()
if licenser._check_product_cert():
settings.LICENSE = licenser.UNLICENSED_DATA.copy()
Setting = apps.get_model('conf', 'Setting')
Setting.objects.filter(key='LICENSE').delete()