from django import forms
from salesforce.SalesforceClient import SalesforceClient


class ReportForm(forms.Form):
    sf_id = forms.CharField()

    def clean(self):
        cleaned_data = super(ReportForm, self).clean()
        sf_id = cleaned_data.get('sf_id')
        sfc = SalesforceClient()
        try:
            sf_return = sfc.sf.Account.get(sf_id)
        except:
            raise forms.ValidationError('No matching Salesforce ID')

c38c5d12ea21f8e342c2de7c31337cec49a758f6
<mask token>


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

<mask token>


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

    def clean(self):
        cleaned_data = super(ReportForm, self).clean()
        sf_id = cleaned_data.get('sf_id')
        sfc = SalesforceClient()
        try:
            sf_return = sfc.sf.Account.get(sf_id)
        except:
            raise forms.ValidationError('No matching Salesforce ID')

<mask token>


class ReportForm(forms.Form):
    sf_id = forms.CharField()

    def clean(self):
        cleaned_data = super(ReportForm, self).clean()
        sf_id = cleaned_data.get('sf_id')
        sfc = SalesforceClient()
        try:
            sf_return = sfc.sf.Account.get(sf_id)
        except:
            raise forms.ValidationError('No matching Salesforce ID')

from django import forms
from salesforce.SalesforceClient import SalesforceClient


class ReportForm(forms.Form):
    sf_id = forms.CharField()

    def clean(self):
        cleaned_data = super(ReportForm, self).clean()
        sf_id = cleaned_data.get('sf_id')
        sfc = SalesforceClient()
        try:
            sf_return = sfc.sf.Account.get(sf_id)
        except:
            raise forms.ValidationError('No matching Salesforce ID')
