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

All Samples(17)  |  Call(2)  |  Derive(0)  |  Import(15)

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/utils.py   tendenci(Download)
    A corporate membership application is required
    """
    from tendenci.addons.corporate_memberships.models import CorporateMembershipType, CorporateMembership
    corp_memb_dicts = []
    for csv_dict in csv_to_dict(file_path):  # field mapping
            except CorporateMembership.DoesNotExist:
                    corp_memb = CorporateMembership(
                        name=name,
                        creator=request.user,
                        creator_username=request.user.username,
                        owner=request.user,
                        owner_username=request.user.username
                    )
        else:
            corp_memb = CorporateMembership(name=name)
def get_over_time_stats():
    """
    return a dict of membership statistics overtime.
    """
    from tendenci.addons.corporate_memberships.models import CorporateMembership
def get_summary():
    from tendenci.addons.corporate_memberships.models import CorporateMembershipType, CorporateMembership
    now = datetime.now()
    summary = []
    types = CorporateMembershipType.objects.all()

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/views.py   tendenci(Download)
from tendenci.core.event_logs.models import EventLog
 
from tendenci.addons.corporate_memberships.models import (
                                            CorpMembershipApp,
                                            CorpMembershipRep,

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/forms.py   tendenci(Download)
from tendenci.addons.memberships.fields import NoticeTimeTypeField
from tendenci.addons.corporate_memberships.widgets import NoticeTimeTypeWidget
from tendenci.addons.corporate_memberships.models import (
    CorporateMembershipType,
    CorpMembership,

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/admin.py   tendenci(Download)
from django.shortcuts import get_object_or_404, redirect
 
from tendenci.addons.corporate_memberships.models import (
    CorporateMembershipType,
    CorpMembershipApp,

src/t/e/tendenci-5.1.333/tendenci/addons/memberships/views.py   tendenci(Download)
from tendenci.core.perms.utils import has_perm, update_perms_and_save, get_query_filters
from tendenci.apps.invoices.models import Invoice
from tendenci.addons.corporate_memberships.models import (CorpMembership,
                                                          CorpProfile,
                                                          CorpMembershipApp,

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

src/t/e/tendenci-5.1.333/tendenci/addons/memberships/models.py   tendenci(Download)
        when their corporate membership expires.
        """
        from tendenci.addons.corporate_memberships.models import CorporateMembership
 
        expire_dt = None
        return tuple (use_threshold, threshold_price)
        """
        from tendenci.addons.corporate_memberships.models import CorporateMembership
        try:
            corp_memb = CorporateMembership.objects.get(id=self.corporate_membership_id)

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/management/commands/corporate_update_memberships.py   tendenci(Download)
    def handle(self, **options):
        from django.core.exceptions import ObjectDoesNotExist
        from tendenci.addons.corporate_memberships.models import CorporateMembership
        from tendenci.addons.memberships.models import Membership
        verbosity = int(options['verbosity'])

src/t/e/tendenci-5.1.333/tendenci/addons/memberships/importer/tasks.py   tendenci(Download)
from tendenci.apps.profiles.models import Profile
from tendenci.apps.profiles.utils import spawn_username
from tendenci.addons.corporate_memberships.models import CorporateMembership
from tendenci.addons.memberships.models import AppEntry, AppField, AppFieldEntry, MembershipType, Membership
from tendenci.addons.memberships.importer.utils import parse_mems_from_csv, clean_field_name

  1 | 2  Next