File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 44
55from django .conf import settings
66from django .db import models
7- from django .db .models .deletion import SET_NULL
8- from django .urls import reverse
9- from pydantic import AnyUrl , BaseModel , ValidationError , validator
7+ from pydantic import AnyUrl
108
11- from blog .manager import CategoryManager , PostManager
9+ from blog .managers import CategoryManager , PostManager
1210
1311
1412def upload_image_path (
@@ -83,7 +81,7 @@ class Post(models.Model):
8381 null = True , blank = True , max_length = 1000
8482 )
8583 draft : bool = models .BooleanField (default = False )
86- publish : datetime = models .DateField (auto_now = False , auto_now_add = False )
84+ publish : date = models .DateField (auto_now = False , auto_now_add = False )
8785 read_time : int = models .IntegerField (default = 0 )
8886 view_count :int = models .PositiveIntegerField (default = 0 )
8987 updated : datetime = models .DateTimeField (auto_now = True , auto_now_add = False )
You can’t perform that action at this time.
0 commit comments