flatpages.FlatPage
FlatPage(id, url, title, content, enable_comments, template_name, registration_required)
Fields
Field | Type | Description |
---|---|---|
content | Text | content |
enable_comments | Boolean (Either True or False) | enable comments |
get_absolute_url | ||
id | Integer | ID |
registration_required | Boolean (Either True or False) | registration required - If this is checked, only logged-in users will be able to view the page. |
sites.all | List | all related sites.Site objects |
sites.count | Integer | number of related sites.Site objects |
template_name | String (up to 70) | template name - Example: “flatpages/contact_page.html”. If this isn’t provided, the system will use “flatpages/default.html”. |
title | String (up to 200) | title |
url | String (up to 100) | URL |