diff options
Diffstat (limited to 'django/cms/management/commands')
-rw-r--r--[-rwxr-xr-x] | django/cms/management/commands/__init__.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | django/cms/management/commands/import_categories.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | django/cms/management/commands/import_pages.py | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/django/cms/management/commands/__init__.py b/django/cms/management/commands/__init__.py index d01d0f0..110a1dc 100755..100644 --- a/django/cms/management/commands/__init__.py +++ b/django/cms/management/commands/__init__.py @@ -1,4 +1,4 @@ -# ============LICENSE_START========================================== +# ============LICENSE_START========================================== # org.onap.vvp/cms # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. diff --git a/django/cms/management/commands/import_categories.py b/django/cms/management/commands/import_categories.py index 5fc9b9d..d944089 100755..100644 --- a/django/cms/management/commands/import_categories.py +++ b/django/cms/management/commands/import_categories.py @@ -1,4 +1,4 @@ -# ============LICENSE_START========================================== +# ============LICENSE_START========================================== # org.onap.vvp/cms # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. diff --git a/django/cms/management/commands/import_pages.py b/django/cms/management/commands/import_pages.py index c1fe799..8d915a8 100755..100644 --- a/django/cms/management/commands/import_pages.py +++ b/django/cms/management/commands/import_pages.py @@ -1,4 +1,4 @@ -# ============LICENSE_START========================================== +# ============LICENSE_START========================================== # org.onap.vvp/cms # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -46,6 +46,8 @@ class Command(BaseCommand): def handle(self, *args, **options): name = "Documentation" - content = "<p>This is the default content of Documentation1 page - you can change it through CMS.</p>" - page = RichTextPage.objects.get_or_create(title=name, defaults={'content': content, 'login_required': True}) + content = "<p>This is the default content of Documentation1 page - \ + you can change it through CMS.</p>" + page = RichTextPage.objects.get_or_create( + title=name, defaults={'content': content, 'login_required': True}) print("Created Ice page: %s" % page[0].title) |