Feature/managment commands#10
Merged
Merged
Conversation
…derstand what this is a commands, Added export_db, import_db commands.
…derstand what this is a commands, Added export_db, import_db commands.
…derstand what this is a commands, Added export_db, import_db commands.
…derstand what this is a commands, Added export_db, import_db commands.
… feature/managment_commands # Conflicts: # game/management/commands/export_db.py
Closed
15 tasks
uxabix
requested changes
Nov 1, 2025
Viton8
reviewed
Nov 1, 2025
Viton8
reviewed
Nov 4, 2025
uxabix
requested changes
Nov 4, 2025
Comment on lines
+210
to
+223
| def _handle_create( | ||
| self, | ||
| count: int, | ||
| prefix: str, | ||
| start: int, | ||
| email_domain: str, | ||
| password: str, | ||
| make_staff: bool, | ||
| make_superuser: bool, | ||
| inactive: bool, | ||
| force: bool, | ||
| dry_run: bool, | ||
| marker_group_name: str, | ||
| ) -> None: |
Owner
There was a problem hiding this comment.
Suggested change
| def _handle_create( | |
| self, | |
| count: int, | |
| prefix: str, | |
| start: int, | |
| email_domain: str, | |
| password: str, | |
| make_staff: bool, | |
| make_superuser: bool, | |
| inactive: bool, | |
| force: bool, | |
| dry_run: bool, | |
| marker_group_name: str, | |
| ) -> None: | |
| def _handle_create(self, options) -> None: |
Comment on lines
+314
to
+322
| count: int = int(options.get("count", 1)) | ||
| prefix: str = options.get("prefix") or "testuser" | ||
| start: int = int(options.get("start", 1)) | ||
| email_domain: str = options.get("email_domain") or "example.com" | ||
| password: str = options.get("password") or "test_password" | ||
| make_staff: bool = bool(options.get("staff")) | ||
| make_superuser: bool = bool(options.get("superuser")) | ||
| inactive: bool = bool(options.get("inactive")) | ||
| force: bool = bool(options.get("force")) |
Owner
There was a problem hiding this comment.
Suggested change
| count: int = int(options.get("count", 1)) | |
| prefix: str = options.get("prefix") or "testuser" | |
| start: int = int(options.get("start", 1)) | |
| email_domain: str = options.get("email_domain") or "example.com" | |
| password: str = options.get("password") or "test_password" | |
| make_staff: bool = bool(options.get("staff")) | |
| make_superuser: bool = bool(options.get("superuser")) | |
| inactive: bool = bool(options.get("inactive")) | |
| force: bool = bool(options.get("force")) |
| - Adds users to the marker group when possible; reports warnings on failure. | ||
| - Prints a success message per created user and a final summary. | ||
| """ | ||
| created: List[User] = [] |
Owner
There was a problem hiding this comment.
Suggested change
| created: List[User] = [] | |
| count: int = int(options.get("count", 1)) | |
| prefix: str = options.get("prefix") or "testuser" | |
| start: int = int(options.get("start", 1)) | |
| email_domain: str = options.get("email_domain") or "example.com" | |
| password: str = options.get("password") or "test_password" | |
| make_staff: bool = bool(options.get("staff")) | |
| make_superuser: bool = bool(options.get("superuser")) | |
| inactive: bool = bool(options.get("inactive")) | |
| force: bool = bool(options.get("force")) | |
| created: List[User] = [] |
Comment on lines
+324
to
+336
| self._handle_create( | ||
| count=count, | ||
| prefix=prefix, | ||
| start=start, | ||
| email_domain=email_domain, | ||
| password=password, | ||
| make_staff=make_staff, | ||
| make_superuser=make_superuser, | ||
| inactive=inactive, | ||
| force=force, | ||
| dry_run=dry_run, | ||
| marker_group_name=marker_group_name, | ||
| ) |
Owner
There was a problem hiding this comment.
Suggested change
| self._handle_create( | |
| count=count, | |
| prefix=prefix, | |
| start=start, | |
| email_domain=email_domain, | |
| password=password, | |
| make_staff=make_staff, | |
| make_superuser=make_superuser, | |
| inactive=inactive, | |
| force=force, | |
| dry_run=dry_run, | |
| marker_group_name=marker_group_name, | |
| ) | |
| self._handle_create(self, options) |
uxabix
approved these changes
Nov 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finished game management commands issue