Tsallaka zuwa abun ciki
Justice Tech School

Model Meta Options

Meta sets ordering and names.

Example
class Post(models.Model):
    title = models.CharField(max_length=100)

    class Meta:
        ordering = ["-id"]
        verbose_name_plural = "posts"

Exercise

Meta class.

class :

Quiz Test

Where does ordering go?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.