NOT NULL constraint failed: api_userlog.browser_info_id (when i want to add show me this error but update and list are working fine)
问题 model.py from django.db import models from django.utils import timezone Create your models here. class PageOnHold(models.Model): timestamp = models.DateTimeField(max_length=None,blank=True, null=True,default=timezone.now) spent_time = models.IntegerField(max_length=None,blank=True, null=True) elapsed_time = models.DateTimeField(max_length=None,blank=True, null=True,default=timezone.now) class MouseClick(models.Model): timestamp = models.DateTimeField(blank=True, null=True,default=timezone.now