You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
621 B
13 lines
621 B
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
class ContentRelease(models.Model):
|
|
version_name = models.CharField(max_length=50, verbose_name=_('Version Name')) # e.g., "v1.2 - Muharram Update"
|
|
published_at = models.DateTimeField(auto_now_add=True, verbose_name=_("Published Date"))
|
|
description = models.TextField(blank=True, verbose_name=_("Release Description"))
|
|
|
|
# Optional: is_active to easily rollback updates if something breaks
|
|
is_active = models.BooleanField(default=True, verbose_name=_("Active"))
|
|
|
|
class Meta:
|
|
ordering = ['-published_at']
|