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

All Samples(21)  |  Call(17)  |  Derive(0)  |  Import(4)

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,
    # add an admin only block for admin
    if user_is_superuser:
        field_objs.append(CorpField(label='Admin Only', field_type='section_break', admin_only=1))
        field_objs.append(CorpField(label='Join Date', field_name='join_dt', admin_only=1))
        field_objs.append(CorpField(label='Status', field_name='status', admin_only=1))
        field_objs.append(CorpField(label='status_detail', field_name='status_detail', admin_only=1))

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)
    CorporateMembership,
    Notice)
from tendenci.addons.corporate_memberships.models import CorpApp, CorpField
from tendenci.addons.corporate_memberships.forms import (
    CorporateMembershipTypeForm,
                for field_d in fields_list:
                    field_d.update({'corp_app':instance})
                    f = CorpField(**field_d)
                    f.save()
 

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/utils.py   tendenci(Download)
            # the secret_code will be auto-generated by the system
    """
    from tendenci.addons.corporate_memberships.models import CorpField
    if corpapp:
        authorized_domains = CorpField.objects.get(corp_app=corpapp, field_name='authorized_domains')