Junior — Senior
Definition of the Article model for retrieving a record by ID
livecode
Task condition
It is required to create a description of the Article model, which will be used to retrieve an article from the database by an identifier obtained from the URL, and then display the full text in a template.
# models.py
# TODO: describe the Article model with fields: id, url, content of the article
The model should contain at least three fields: a unique record identifier, the article's URL, and its textual content.