1from django.db import models
2
3class Ox(models.Model):
4 horn_length = models.IntegerField()
5
6 class Meta:
7 ordering = ["horn_length"]
8 verbose_name_plural = "oxen"
9
10
11 //Model metadata is “anything that’s not a field”, such as ordering options (ordering), database table name (db_table), or human-readable singular and plural names (verbose_name and verbose_name_plural). None are required, and adding class Meta to a model is completely optional.
12