Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/p/apidev-sanza-3.0.4/sanza/Crm/forms.py   apidev-sanza(Download)
from django.contrib.auth.models import User
from sanza.Crm import models
from sanza.Crm.widgets import CityAutoComplete, EntityAutoComplete, OpportunityAutoComplete, ContactAutoComplete
from sanza.Crm.settings import NO_ENTITY_TYPE
from sanza.Crm.utils import get_default_country
    def __init__(self, *args, **kwargs):
        choices = kwargs.pop('choices', None)
        super(SelectOpportunityForm, self).__init__(*args, **kwargs)
        widget = OpportunityAutoComplete(
            attrs={'placeholder': _(u'Enter the name of a opportunity'), 'size': '50', 'class': 'colorbox'})

src/a/p/apidev-sanza-3.0.4/sanza/Search/forms.py   apidev-sanza(Download)
from sanza.Search.widgets import DatespanInput
from sanza.Crm.models import Contact, Action, Group
from sanza.Crm.widgets import OpportunityAutoComplete
from django.conf import settings
from .utils import get_date_bounds
            self.fields['contacts'].initial = initial_contacts
        self.fields['opportunity'].widget = OpportunityAutoComplete(
            attrs={'placeholder': _(u'Enter the name of an opportunity'), 'size': '80', 'class': 'colorbox'})
 
    def get_contacts(self):