from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone

class BlogPost(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    massage = models.CharField(max_length=250)
    created_at= models.DateTimeField(default=timezone.now)
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone

class BlogPost(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    massage = models.CharField(max_length=250)
    created_at= models.DateTimeField(default=timezone.now)