Skip to content

Commit 903cd0c

Browse files
committed
Rename manager.py to managers.py.
1 parent c6debad commit 903cd0c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

blog/models.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
from django.conf import settings
66
from 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

1412
def 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)

0 commit comments

Comments
 (0)