Skip to content
Snippets Groups Projects
Select Git revision
  • 91f79e6cb5b72c2e44daf12f71c48180453ce8f6
  • main default protected
  • docker
  • feature-tracker
  • fix-api
  • feature-event-wizard
  • feature-akslides
  • fix-history-interest
  • feature-constraint-checking-wip
  • feature-constraint-checking
10 results

models.py

Blame
  • Forked from KIF / AKPlanning
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    apps.py 845 B
    from django.utils.translation import gettext_lazy
    
    from . import __version__
    
    try:
        from pretix.base.plugins import PluginConfig
    except ImportError:
        raise RuntimeError("Please use pretix 2.7 or above to run this plugin!")
    
    
    class PluginApp(PluginConfig):
        name = "pretix_matrix_inviter"
        verbose_name = "pretix Matrix inviter"
    
        class PretixPluginMeta:
            name = gettext_lazy("Matrix inviter")
            author = "Felix Schäfer"
            description = gettext_lazy("Invite participants to a Matrix Room or Space.")
            visible = True
            version = __version__
            category = "FEATURE"
            compatibility = "pretix>=2.7.0"
            settings_links = [
                (gettext_lazy("Matrix inviter"), "plugins:pretix_matrix_inviter:settings", {}),
            ]
    
        def ready(self):
            from . import signals  # NOQA