Skip to content

Commit

Permalink
🐛 [#1] fix management command
Browse files Browse the repository at this point in the history
  • Loading branch information
annashamray committed Feb 20, 2024
1 parent fdba99b commit 3ac524b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_setup_configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class BaseConfigurationStep(ABC):
required_settings: list[str] = []
enable_setting: str = ""

def __str__(self):
def __repr__(self):
return self.verbose_name

def validate_requirements(self) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def handle(self, **options):
# todo transaction atomic
errors = ErrorDict()
steps: list[BaseConfigurationStep] = [
import_string(path) for path in settings.SETUP_CONFIGURATION_STEPS
import_string(path)() for path in settings.SETUP_CONFIGURATION_STEPS
]
enabled_steps = [step for step in steps if step.is_enabled()]

Expand Down

0 comments on commit 3ac524b

Please sign in to comment.