Security issue in django.db.models

2020-08-07 Thread Juan D.
I've created a model with null and blank set to False in robot_name: class Robot(models.Model): robot_name = models.CharField(max_length=200, null=False, blank=False) version = models.CharField(max_length=20, blank=True, null=True) class Meta: unique_together = ('robot_name',

Model security error in shell

2020-08-07 Thread Juan D.
Hi. This is something that only occurs in the shell environment, not in the web. If I have this model: class Phone_App(models.Model): phone= models.ForeignKey(Phone, on_delete=models.CASCADE) app_name = models.ForeignKey(App, on_delete=models.CASCADE) downloads = models.IntegerField(d