[Answered ]-Django Model Won't Validate or Not Installed

2👍

This error occurs probably because of a dependency issue:

Try use the ForeignKey like this:

class Purchase(models.Model):

    user = models.ForeignKey(User, related_name = 'purchase_user')
    product = models.ForeignKey(Design)
    quantity = models.IntegerField()
    paypal_transaction = models.ForeignKey(
        'f3.paypal.PaypalPaymentTransactions',
        default = None,
        null = True,
        blank = True)

Leave a comment