@property
    @memoized
    def select_subscription_type_form(self):
        if self.request.method == 'POST' and self.request.POST in 'slug':
            return SelectSubscriptionTypeForm({
                'subscription_type': self.request.POST['slug'],
            })

        subscription_type = None
        subscription = Subscription.get_subscribed_plan_by_domain(self.domain_object)[1]
        if subscription is None:
            subscription_type = None
        else:
            plan = subscription.plan_version.plan
            if subscription.service_type == SubscriptionType.IMPLEMENTATION:
                subscription_type = ContractedPartnerForm.slug
            elif plan.edition == SoftwarePlanEdition.ENTERPRISE:
                subscription_type = DimagiOnlyEnterpriseForm.slug
            elif plan.edition == SoftwarePlanEdition.ADVANCED:
                subscription_type = AdvancedExtendedTrialForm.slug

        return SelectSubscriptionTypeForm(
            {'subscription_type': subscription_type},
            disable_input=not self.is_form_editable,
        )
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/domain/views.py/InternalSubscriptionManagementView.select_subscription_type_form/swapped operands of `in`