You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from django.db import models
|
|
|
|
class Entry(models.Model):
|
|
text = models.TextField()
|
|
date = models.DateTimeField(auto_now_add=True)
|
|
|
|
class Meta:
|
|
verbose_name_plural = 'Entries'
|
|
|
|
def __str__(self):
|
|
return 'Entry #{}'.format(self.id)
|