Skip to content

Category: e-lo

Django database API foreign key 102


Our models have now changed and a new model has been added to e-lo.

In RawText, we store the input, in BlobText we store the functions from TextBlob lib. If we remove the instance from the first table, we also need to remove it from the second. Ref on_delete = models.CASCADE

Lets add two instances and view them, then delete them.