<reponame>successaje/Applications
from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _

from myproject.apps.core.models import(
    CreationModificationDatabase,
    MetaTagsBase,
    UrlBase,
)

class Idea(CreationModificationDatabase, MetaTagsBase, UrlBase):
    title = models.CharField(
        _("Title"),
        max_length=200,
    )

    content = models.TextField(
        _("Content"),
    )

    class Meta:
        verbose_name= _("Idea")
        verbose_name_plural = _("Ideas")

        def __str__(self):
            return self.title

        def get_url_path(self):
            return reverse("idea_details", kwargs={"idea_id":str(self.pk),})
from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _

from myproject.apps.core.models import(
    CreationModificationDatabase,
    MetaTagsBase,
    UrlBase,
)

class Idea(CreationModificationDatabase, MetaTagsBase, UrlBase):
    title = models.CharField(
        _("Title"),
        max_length=200,
    )

    content = models.TextField(
        _("Content"),
    )

    class Meta:
        verbose_name= _("Idea")
        verbose_name_plural = _("Ideas")

        def __str__(self):
            return self.title

        def get_url_path(self):
            return reverse("idea_details", kwargs={"idea_id":str(self.pk),})