how to add list field in the sqlite db in django restframework
camera = models.ForeignKey(Camera, on_delete=models.CASCADE)
updated_time = models.DateTimeField(auto_now_add=True)
objects_inself = models.????
how to add list field in the sqlite db in django restframework
camera = models.ForeignKey(Camera, on_delete=models.CASCADE)
updated_time = models.DateTimeField(auto_now_add=True)
objects_inself = models.????
SQLite doesn't support list or array fields, but you have few options depending on what you want to archive.
YourModel.your_related_objects_set.all()