django_sorcery.management.commands.sorcery_stamp module

Stamp command.

django_sorcery.management.commands.sorcery_stamp.Command

alias of django_sorcery.management.commands.sorcery_stamp.Stamp

class django_sorcery.management.commands.sorcery_stamp.Stamp(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django_sorcery.management.alembic.AlembicCommand

Stamp the revision table with migration revisions, doesn’t run any migrations.

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(app_label=None, revision=None, **kwargs)[source]

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

help = "Stamp the revision table with migration revisions, doesn't run any migrations"
stamp(rev, context, appconfig, revision)[source]

Stamp the alembic revision.