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

All Samples(12)  |  Call(0)  |  Derive(6)  |  Import(6)

src/d/j/django-oscar-HEAD/oscar/apps/checkout/forms.py   django-oscar(Download)
from django.utils.translation import ugettext_lazy as _
 
from oscar.apps.address.forms import AbstractAddressForm
from oscar.apps.customer.utils import normalise_email
from oscar.core.compat import get_user_model
class ShippingAddressForm(PhoneNumberMixin, AbstractAddressForm):
 
    def __init__(self, *args, **kwargs):
        super(ShippingAddressForm, self).__init__(*args, **kwargs)
        self.adjust_country_field()

src/d/j/django-oscar-0.7/oscar/apps/checkout/forms.py   django-oscar(Download)
from django.utils.translation import ugettext_lazy as _
 
from oscar.apps.address.forms import AbstractAddressForm
from oscar.apps.customer.utils import normalise_email
from oscar.core.compat import get_user_model
class ShippingAddressForm(PhoneNumberMixin, AbstractAddressForm):
 
    def __init__(self, *args, **kwargs):
        super(ShippingAddressForm, self).__init__(*args, **kwargs)
        self.adjust_country_field()

src/d/j/django-oscar-HEAD/oscar/apps/dashboard/orders/forms.py   django-oscar(Download)
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import pgettext_lazy
from oscar.apps.address.forms import AbstractAddressForm
 
from oscar.views.generic import PhoneNumberMixin
class ShippingAddressForm(PhoneNumberMixin, AbstractAddressForm):
 
    class Meta:
        model = ShippingAddress
        exclude = ('search_text',)

src/d/j/django-oscar-HEAD/oscar/apps/payment/forms.py   django-oscar(Download)
 
from oscar.core.loading import get_model
from oscar.apps.address.forms import AbstractAddressForm
from oscar.views.generic import PhoneNumberMixin
from . import bankcards
class BillingAddressForm(PhoneNumberMixin, AbstractAddressForm):
 
    def __init__(self, *args, **kwargs):
        super(BillingAddressForm, self).__init__(*args, **kwargs)
        self.set_country_queryset()

src/d/j/django-oscar-0.7/oscar/apps/dashboard/orders/forms.py   django-oscar(Download)
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import pgettext_lazy
from oscar.apps.address.forms import AbstractAddressForm
 
from oscar.views.generic import PhoneNumberMixin
class ShippingAddressForm(PhoneNumberMixin, AbstractAddressForm):
 
    class Meta:
        model = ShippingAddress
        exclude = ('search_text',)

src/d/j/django-oscar-0.7/oscar/apps/payment/forms.py   django-oscar(Download)
 
from oscar.core.loading import get_model
from oscar.apps.address.forms import AbstractAddressForm
from oscar.views.generic import PhoneNumberMixin
from . import bankcards
class BillingAddressForm(PhoneNumberMixin, AbstractAddressForm):
 
    def __init__(self, *args, **kwargs):
        super(BillingAddressForm, self).__init__(*args, **kwargs)
        self.set_country_queryset()