Model API Reference¶
Model API documentation for the meeting.gate.models module.
-
class
meeting.gate.models.
BatchPaperTicket
(id, created_on, modified_on, name, first_line, contents)[source]¶ Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- name (CharField) – Nome
- first_line (PositiveIntegerField) – First line
- contents (TextField) – Contents
-
class
meeting.gate.models.
GuestTicket
(*args, **kwargs)[source]¶ GuestTicket data handles guest tickets information.
Guest tickets contains a QRCode (uuid param) usually previously generated from another application and also the guest name and document required to allow the guest entrance.
The required attributes are:
Parameters: - uuid (string) – The universally unique identifier for the ticket.
- list_name (string) – The list this guest is related, for example: Sound Crew.
- person_name (string) – The guest name to be checked on ther person document.
- person_document (integer) – The guest document id code.
So, you need the create the guest ticket containing the attributes above.
Example: >>> GuestTicket.objects.create(uuid='SOME-UUID', ... list_name='Sound Crew', ... person_name='Regular Joe', ... person_document='ABC-123') <GuestTicket: SOME-UUID>
Note
The complete attribute list below is autogenerated, most of the fields are not necessary to create a valid GuestTicket.
Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- wristband_code (CharField) – Pulseira
- entry_on (DateTimeField) – Entrou em
- wallet_id (PositiveIntegerField) – Id carteira
- wallet_info (TextField) – Wallet info
- shop_purchase_date (DateTimeField) – Comprado em
- wristband_ptr (OneToOneField to
qrcode
) – Wristband ptr - uuid (CharField) – Qrcode
- qrcode_requires_identification (BooleanField) – qrcode_requires_identification
- qrcode_ptr (OneToOneField to
guestticket
) – Qrcode ptr - person_name (CharField) – Nome da pessoa
- person_document (CharField) – Documento da pessoa
- list_name (CharField) – Nome da lista de convidados
-
class
meeting.gate.models.
LocalTicket
(id, created_on, modified_on, wristband_code, entry_on, wallet_id, wallet_info, shop_purchase_date, wristband_ptr)[source]¶ Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- wristband_code (CharField) – Pulseira
- entry_on (DateTimeField) – Entrou em
- wallet_id (PositiveIntegerField) – Id carteira
- wallet_info (TextField) – Wallet info
- shop_purchase_date (DateTimeField) – Comprado em
- wristband_ptr (OneToOneField to
localticket
) – Wristband ptr
-
class
meeting.gate.models.
PaperTicket
(id, created_on, modified_on, wristband_code, entry_on, wallet_id, wallet_info, shop_purchase_date, wristband_ptr, uuid, qrcode_requires_identification, qrcode_ptr, batch, batch_name, batch_line)[source]¶ Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- wristband_code (CharField) – Pulseira
- entry_on (DateTimeField) – Entrou em
- wallet_id (PositiveIntegerField) – Id carteira
- wallet_info (TextField) – Wallet info
- shop_purchase_date (DateTimeField) – Comprado em
- wristband_ptr (OneToOneField to
qrcode
) – Wristband ptr - uuid (CharField) – Qrcode
- qrcode_requires_identification (BooleanField) – qrcode_requires_identification
- qrcode_ptr (OneToOneField to
paperticket
) – Qrcode ptr - batch (ForeignKey to
paperticket
) – Batch - batch_name (CharField) – Nome do lote
- batch_line (PositiveIntegerField) – Linha do lote
-
class
meeting.gate.models.
QRCode
(id, created_on, modified_on, wristband_code, entry_on, wallet_id, wallet_info, shop_purchase_date, wristband_ptr, uuid, qrcode_requires_identification)[source]¶ Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- wristband_code (CharField) – Pulseira
- entry_on (DateTimeField) – Entrou em
- wallet_id (PositiveIntegerField) – Id carteira
- wallet_info (TextField) – Wallet info
- shop_purchase_date (DateTimeField) – Comprado em
- wristband_ptr (OneToOneField to
qrcode
) – Wristband ptr - uuid (CharField) – Qrcode
- qrcode_requires_identification (BooleanField) – qrcode_requires_identification
-
class
meeting.gate.models.
WebTicket
(*args, **kwargs)[source]¶ WebTicket data handles web tickets information.
Web tickets contains a QRCode (uuid param) usually previously generated from another application.
The required attributes are:
Parameters: - uuid (string) – The universally unique identifier for the ticket.
- product_id (integer) – The product ID or type.
- product_name (string) – The product name or description.
- buyer_name (string) – The product buyer name.
- buyer_email (string) – The product buyer email.
- shop_purchase_date (datetime) – The shop purchase date.
So, you need the create the web ticket containing the attributes above.
Example: >>> WebTicket.objects.create(uuid='SOME-UUID', ... product_id=123, ... product_name='Festival Ticket', ... buyer_name='Regular Joe', ... buyer_email='buyer@email.com', ... shop_purchase_date=datetime(2012, 12, 12, 12)) <WebTicket: SOME-UUID>
Note
The complete attribute list below is autogenerated, most of the fields are not necessary to create a valid WebTicket.
Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- wristband_code (CharField) – Pulseira
- entry_on (DateTimeField) – Entrou em
- wallet_id (PositiveIntegerField) – Id carteira
- wallet_info (TextField) – Wallet info
- shop_purchase_date (DateTimeField) – Comprado em
- wristband_ptr (OneToOneField to
qrcode
) – Wristband ptr - uuid (CharField) – Qrcode
- qrcode_requires_identification (BooleanField) – qrcode_requires_identification
- qrcode_ptr (OneToOneField to
webticket
) – Qrcode ptr - person_name (CharField) – Nome da pessoa
- person_document (CharField) – Documento da pessoa
- product_id (PositiveIntegerField) – Id do produto
- product_name (CharField) – Nome do produto
- buyer_name (CharField) – Nome do comprador
- buyer_email (EmailField) – Email do comprador
-
class
meeting.gate.models.
Wristband
(id, created_on, modified_on, wristband_code, entry_on, wallet_id, wallet_info, shop_purchase_date)[source]¶ Parameters: - id (AutoField) – Id
- created_on (DateTimeField) – Criado em
- modified_on (DateTimeField) – Modificado em
- wristband_code (CharField) – Pulseira
- entry_on (DateTimeField) – Entrou em
- wallet_id (PositiveIntegerField) – Id carteira
- wallet_info (TextField) – Wallet info
- shop_purchase_date (DateTimeField) – Comprado em