Issue #129 resolved

lfs_init

Anonymous created an issue

django 1.3.1,python 2.6, postgres 8.4, lfs 0.6.4

after #django lfs_init not possible to add custom payment method Exception Value: duplicate key value violates unique constraint "payment_paymentmethod_pkey"

In lfs/core/management/commands/lfs_init.py replace: PaymentMethod.objects.create(pk=1,name="Direct debit", priority=1, active=1, deletable=0, type=PM_BANK) PaymentMethod.objects.create(pk=2,name="Cash on delivery", priority=2, active=1, deletable=0) PaymentMethod.objects.create(pk=3,name="PayPal", priority=3, active=1, deletable=0) PaymentMethod.objects.create(pk=4,name="Prepayment", priority=4, active=1, deletable=0) to PaymentMethod.objects.create(name="Direct debit", priority=1, active=1, deletable=0, type=PM_BANK) PaymentMethod.objects.create(name="Cash on delivery", priority=2, active=1, deletable=0) PaymentMethod.objects.create(name="PayPal", priority=3, active=1, deletable=0) PaymentMethod.objects.create(name="Prepayment", priority=4, active=1, deletable=0)