Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(1)  |  Derive(0)  |  Import(3)

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/utils.py   tendenci(Download)
def update_authorized_domains(corp_profile, domain_names):
    """
    Update the authorized domains for this corporate membership.
    """
    from tendenci.addons.corporate_memberships.models import CorpMembershipAuthDomain
        # add the rest of the domain
        for name in dname_list:
            auth_domain = CorpMembershipAuthDomain(corp_profile=corp_profile,
                                                   name=name)
            auth_domain.save()

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/management/commands/port_to_corpmembership.py   tendenci(Download)
    def handle(self, **options):
        from tendenci.addons.corporate_memberships.models import (
                                                  CorpProfile,
                                                  CorpMembership,
                                                  CorpMembershipRep,

src/t/e/tendenci-5.1.333/tendenci/addons/memberships/forms.py   tendenci(Download)
 
from tendenci.core.base.fields import SplitDateTimeField, EmailVerificationField
from tendenci.addons.corporate_memberships.models import (
    CorporateMembership, CorpMembership, CorpMembershipAuthDomain)
from tendenci.apps.user_groups.models import Group