Skip to main content

This is a plugin for pretix.

Limit the available phone number country code in pretix phone number questions. Caution! Applies to the whole server! This plugin does not even have to be activated. As soon as you install it, it overrides the phone number prefixes available server-wide.

It applies to both phone number questions and the pretix built-in phone number field.

By default, this plugin restricts phone numbers to “+1 (USA)”. If you want to place a different restriction, you can do so via the pretix configuration file. Add a section like this (and use the standard country codes):

[plugin:limit_phone_country]
US = 1
DE = 49

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository, eg to local/pretix-limit-phone-country.

  3. Activate the virtual environment you use for pretix development.

  4. Execute python setup.py develop within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

License

Copyright 2021 Tobias Kunze

Released under the terms of the Apache License 2.0

Metadata

Release files for pretix-limit-phone-country 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretix-limit-phone-country 1.0.1
File Size Uploaded
pretix-limit-phone-country-1.0.1.tar.gz 5.5 kB Details

Release files / pretix-limit-phone-country-1.0.1.tar.gz

Download URL pretix-limit-phone-country-1.0.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9bdcc7962bde6c37c373a5d6316868b3f0a8c27f6b1a3e304fcac66e0652103b
BLAKE2b-256 checksum
How to use checksums
a9ac8771b77ead24409459f1c003d670131b9cf3aa3fd0f5669494481dfb590b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

0.9.1

1 release file

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page