from django.db import models
from django.utils.translation import gettext_lazy as _
from apps.user.models import User
from core.models import BaseModel


class Post(BaseModel):
    author = models.ForeignKey(User, on_delete=models.CASCADE)
    text = models.CharField(_('text'), max_length=500)
    likes = models.PositiveIntegerField(_('likes'), default=0)
    dislikes = models.PositiveIntegerField(_('dislikes'), default=0)

623c401ae93963f454d9c7b5b9c4b5c2a9ea4520
<mask token>

<mask token>


class Post(BaseModel):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Post(BaseModel):
    author = models.ForeignKey(User, on_delete=models.CASCADE)
    text = models.CharField(_('text'), max_length=500)
    likes = models.PositiveIntegerField(_('likes'), default=0)
    dislikes = models.PositiveIntegerField(_('dislikes'), default=0)

from django.db import models
from django.utils.translation import gettext_lazy as _
from apps.user.models import User
from core.models import BaseModel


class Post(BaseModel):
    author = models.ForeignKey(User, on_delete=models.CASCADE)
    text = models.CharField(_('text'), max_length=500)
    likes = models.PositiveIntegerField(_('likes'), default=0)
    dislikes = models.PositiveIntegerField(_('dislikes'), default=0)
