Changeset - fc88c31d82a2
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 12 months ago 2023-04-20 04:56:59
ben@sturm.com.au
Switch default country to US, currency to USD, tax to zero

Also default linux_australia to field to false to avoid IntegrityError.
2 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
pinaxcon/registrasion/models.py
Show inline comments
...
 
@@ -135,7 +135,7 @@ class AttendeeProfile(rego.AttendeeProfileBase):
 
    )
 
    country = CountryField(
 
        verbose_name="Country",
 
        default="AU",
 
        default="US",
 
    )
 
    state = models.CharField(
 
        max_length=256,
...
 
@@ -146,8 +146,7 @@ class AttendeeProfile(rego.AttendeeProfileBase):
 
    of_legal_age = models.BooleanField(
 
        verbose_name="Are you over 18?",
 
        help_text="Being under 18 will not stop you from attending the "
 
                  "conference. We need to know whether you are over 18 to "
 
                  "allow us to cater for you at venues that serve alcohol.",
 
                  "conference.",
 
        blank=True,
 
    )
 
    dietary_restrictions = models.CharField(
...
 
@@ -185,6 +184,7 @@ class AttendeeProfile(rego.AttendeeProfileBase):
 
                  "<a href='http://www.linux.org.au/'>Linux Australia</a> "
 
                  "membership.",
 
        blank=True,
 
        default=False,
 
    )
 

	
 
    lca_announce = models.BooleanField(
pinaxcon/settings.py
Show inline comments
...
 
@@ -376,8 +376,8 @@ MAIN_CONFERENCE_PROPOSAL_KINDS = ("Talk",)
 
# Registrasion bits:
 
ATTENDEE_PROFILE_MODEL = "pinaxcon.registrasion.models.AttendeeProfile"
 
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
 
INVOICE_CURRENCY = "AUD"
 
GST_RATE =  Decimal('0.1')
 
INVOICE_CURRENCY = "USD"
 
GST_RATE =  Decimal('0')
 
TICKET_PRODUCT_CATEGORY = 1
 
TERMS_PRODUCT_CATEGORY = 2
 
ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
0 comments (0 inline, 0 general)