Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Mass mailer should only include valid tickets #385

Open
@malemburg

Description

@malemburg

The mass mail interface for attendees currently returns all tickets assigned to the user, including canceled ones (frozen status), and ones for which the payment process was not completed.

The correct query for tickets would be:

# Get all valid conference tickets (frozen ones are not valid)
tickets = cmodels.Ticket.objects.filter(
    fare__conference=conference,
    fare__ticket_type='conference',
    orderitem__order___complete=True,
    frozen=False,
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions