from django import forms
from customer.models import Address, Customer


class OrderAddress(forms.Form):
    address = forms.ModelChoiceField(queryset=Address.objects.all())

    def __init__(self, user, *args, **kwargs):
        super(OrderAddress, self).__init__(*args, **kwargs)
        self.fields['address'].queryset = Address.objects.filter(customer__user
            =user)

9862c01916e352e92f14bba4f24848dd03b62180
<mask token>


class OrderAddress(forms.Form):
    <mask token>
    <mask token>

<mask token>


class OrderAddress(forms.Form):
    <mask token>

    def __init__(self, user, *args, **kwargs):
        super(OrderAddress, self).__init__(*args, **kwargs)
        self.fields['address'].queryset = Address.objects.filter(customer__user
            =user)

<mask token>


class OrderAddress(forms.Form):
    address = forms.ModelChoiceField(queryset=Address.objects.all())

    def __init__(self, user, *args, **kwargs):
        super(OrderAddress, self).__init__(*args, **kwargs)
        self.fields['address'].queryset = Address.objects.filter(customer__user
            =user)

from django import forms
from customer.models import Address, Customer


class OrderAddress(forms.Form):
    address = forms.ModelChoiceField(queryset=Address.objects.all())

    def __init__(self, user, *args, **kwargs):
        super(OrderAddress, self).__init__(*args, **kwargs)
        self.fields['address'].queryset = Address.objects.filter(customer__user
            =user)
