[Answer]-DJango 1.6 model.BinaryField causes TypeError

1👍

both EmailField and BinaryField are missing the () changing the class to be written like this solved the issue

class Company(models.Model):
        Name = models.CharField(max_length=150)
        PhoneNumber = models.CharField(max_length=20)
        Email = models.EmailField()
        CompanyLogo = models.BinaryField()
👤liv a

Leave a comment