<reponame>devmahmud/Guestbook-App
from django.db import models
from django.utils import timezone

class Comment(models.Model):

    name = models.CharField( max_length=25 )
    comment = models.TextField()
    date_added = models.DateTimeField( default = timezone.now )

    def __str__(self):
        return f"<id: { self.id } , { self.name }>"

from django.db import models
from django.utils import timezone

class Comment(models.Model):

    name = models.CharField( max_length=25 )
    comment = models.TextField()
    date_added = models.DateTimeField( default = timezone.now )

    def __str__(self):
        return f"<id: { self.id } , { self.name }>"