"""Adding __str__() to modelsAlthough it's not a strict requirement, each model should have a ``_str__()``method to return a "human-readable" representation of the object. Do this notonly for your own sanity when dealing with the interactive prompt, but alsobecause objects' representations are used throughout Django'sautomatically-generated admin."""from django.db import models
class InternationalArticle(models.Model):
headline = models.CharField(max_length=100)
pub_date = models.DateTimeField()
def __str__(self):
return self.headline