title = models.CharField (max_length=200, verbose_name=" title")
category = models.ForeignKey (Category, on_delete=models.CASCADE, blank=True, null=True, verbose_name=" Category")
author = models.ForeignKey (Author, on_delete=models.CASCADE, blank=True, null=True, verbose_name=" author")
IntegrityError at / admin/pattra/works/add/
NOT NULL constraint failed: pattra_works.author_id
Request Method: POST
Request URL: python.exe
Python Version: 3.6.3
provider = models.ForeignKey (User, on_delete=models.CASCADE, verbose_name=" uploader",
default=User.objects.get(id=1))
< hr >
somehow uploading pictures always indicates that the operation failed
not long after I studied django, I also looked up some content on the Internet, but I couldn"t solve it all the time. Please take the trouble to give me some advice