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',
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
2 matches
Mail list logo