blob: 9758377f99aa49358177c67296298661dd999a59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from django.db import models
class Article(models.Model):
headline = models.CharField(max_length=100)
pub_date = models.DateTimeField()
class Meta:
index_together = [
["headline", "pub_date"],
]
|