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]

Add 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_course()[source]
create_document()[source]

Create new random documents.

create_event()[source]

Create an event.

create_event_registration(event_to_register_for=None)[source]
create_member_group(group_model)[source]

Create a MemberGroup.

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_newsletter()[source]
create_partner()[source]

Create a new random partner.

create_payment()[source]
create_photo(album)[source]
create_photo_album()[source]
create_pizza()[source]

Create a new random pizza product.

create_user()[source]

Create a new random user.

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

create_vacancy_category()[source]

Create new random vacancy categories.

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.createfixtures.get_event_to_register_for(member)[source]

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.

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Creates a user for the a review environment'