utils.management.commands package¶
Submodules¶
utils.management.commands.createfixtures module¶
Provides the command to generate fixtures
-
class
utils.management.commands.createfixtures.
Command
(stdout=None, stderr=None, no_color=False, force_color=False)[source]¶ Bases:
django.core.management.base.BaseCommand
Command to create fake data to populate the site
-
add_arguments
(parser)[source]¶ Adds arguments to the argument parser.
- Parameters
parser – the argument parser
-
create_board
(lecture_year)[source]¶ Create a new board
- Parameters
lecture_year (int) – the lecture year this board was active
-
create_member_group_membership
(member, group)[source]¶ Create member group membership
- Parameters
member – the member to add to the committee
group – the group to add the member to
-
create_vacancy
(partners, categories)[source]¶ Create a new random vacancy
- Parameters
partners – the partners to choose a partner from
categories – the categories to choose this vacancy from
-
handle
(*args, **options)[source]¶ Handle the command being executed
- Parameters
options – the passed-in options
-
help
= 'Creates fake data to test the site with'¶
-
utils.management.commands.createreviewuser module¶
-
class
utils.management.commands.createreviewuser.
Command
(stdout=None, stderr=None, no_color=False, force_color=False)[source]¶ Bases:
django.core.management.base.BaseCommand
Command to create a user we can use to review
-
handle
(*args, **options)[source]¶ The actual logic of the command. Subclasses must implement this method.
-
help
= 'Creates a user for the a review environment'¶
-