from __future__ import unicode_literals

import django

from paypal.standard.forms import PayPalStandardBaseForm
from paypal.standard.pdt.models import PayPalPDT


class PayPalPDTForm(PayPalStandardBaseForm):
    class Meta:
        model = PayPalPDT
        if django.VERSION >= (1, 6):
            fields = '__all__'

from __future__ import unicode_literals

import django

from paypal.standard.forms import PayPalStandardBaseForm
from paypal.standard.pdt.models import PayPalPDT


class PayPalPDTForm(PayPalStandardBaseForm):
    class Meta:
        model = PayPalPDT
        if django.VERSION >= (1, 6):
            exclude = ('ipaddress', 'flag', 'flag_code', 'flag_info', 'query', 'response', 'created_at', 'updated', 'form_view',)

Add non-PayPal fields to exclude
Add non-PayPal fields to exclude

All the non-paypal fields are blanked if you don't exclude them from the form.

  from __future__ import unicode_literals
  
  import django
  
  from paypal.standard.forms import PayPalStandardBaseForm
  from paypal.standard.pdt.models import PayPalPDT
  
  
  class PayPalPDTForm(PayPalStandardBaseForm):
      class Meta:
          model = PayPalPDT
          if django.VERSION >= (1, 6):
-             fields = '__all__'
+             exclude = ('ipaddress', 'flag', 'flag_code', 'flag_info', 'query', 'response', 'created_at', 'updated', 'form_view',)
  
Add non-PayPal fields to exclude
## Code Before:
from __future__ import unicode_literals

import django

from paypal.standard.forms import PayPalStandardBaseForm
from paypal.standard.pdt.models import PayPalPDT


class PayPalPDTForm(PayPalStandardBaseForm):
    class Meta:
        model = PayPalPDT
        if django.VERSION >= (1, 6):
            fields = '__all__'

## Instruction:
Add non-PayPal fields to exclude
## Code After:
from __future__ import unicode_literals

import django

from paypal.standard.forms import PayPalStandardBaseForm
from paypal.standard.pdt.models import PayPalPDT


class PayPalPDTForm(PayPalStandardBaseForm):
    class Meta:
        model = PayPalPDT
        if django.VERSION >= (1, 6):
            exclude = ('ipaddress', 'flag', 'flag_code', 'flag_info', 'query', 'response', 'created_at', 'updated', 'form_view',)
