Skip to content

Genre model

The Genre model represents a genre entry in the database. It includes a field to store the name of the genre and uses a custom manager for genre-specific queries.

Fields

name string

The name of the genre.


created_at datetime

The date and time when the character was first created. This field is automatically populated when the entry is initially saved.


updated_at datetime

The date and time of the last update. This field is automatically refreshed each time the entry is modified and saved.


is_available boolean

Indicates is available or not. The default value is True.