tcms.core.management.commands.migrations_order module

class tcms.core.management.commands.migrations_order.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: Command

Uses migrate –plan to avoid duplicating the internals.

handle(**kwargs)

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

help = 'List the order in which migrations will be applied. Useful for testing & rollback!'
class tcms.core.management.commands.migrations_order.KiwiOutputWrapper(*args, migrate_heading=None, **kwargs)[source]

Bases: OutputWrapper

write(msg='', style_func=None, ending=None)[source]

Write string to stream. Returns the number of characters written (which is always equal to the length of the string).