Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve cleardb module docstring

Marcin Gębalaa233895acfb5
diff --git a/.isort.cfg b/.isort.cfg
index 3aff4dfdf6..a4793e384c 100644
--- a/.isort.cfg
+++ b/.isort.cfg
@@ -1,2 +1,2 @@
[settings]
-known_third_party = PIL,babel,bleach,braintree,celery,dj_database_url,dj_email_url,django,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_django_optimizer,graphene_federation,graphql,graphql_jwt,graphql_relay,html5lib,html_to_draftjs,i18naddress,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,six,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield
+known_third_party = PIL,babel,bleach,braintree,celery,dj_database_url,dj_email_url,django,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_django_optimizer,graphene_federation,graphql,graphql_jwt,graphql_relay,html5lib,html_to_draftjs,i18naddress,jaeger_client,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,six,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield
diff --git a/saleor/core/management/commands/cleardb.py b/saleor/core/management/commands/cleardb.py
index 0122aaf2af..b131e3c4f3 100644
--- a/saleor/core/management/commands/cleardb.py
+++ b/saleor/core/management/commands/cleardb.py
@@ -1,13 +1,10 @@
-"""Clear random data.
+"""Clear the database preserving shop's configuration.
-This command removes random data generated by `populatedb` command, such as example
-orders, products or customer accounts. It doesn't remove shop's configuration, such as:
-staff accounts, service accounts, plugin configurations, site settings or navigation
-menus.
+This command clears the database from data such as orders, products or customer
+accounts. It doesn't remove shop's configuration, such as: staff accounts, service
+accounts, plugin configurations, site settings or navigation menus.
"""
-from __future__ import unicode_literals
-
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.db.models import Q