- slug = models.SlugField(_('slug'), max_length=120, db_index=True)
- text = models.TextField(_('text'))
- created_by = models.ForeignKey(User, null=True)
- created_from = JSONField(_('extra information'), null=True, blank=True)
- created_at = models.DateTimeField(_('creation date'), auto_now_add=True, editable=False)
- seen_at = models.DateTimeField(_('last view date'), auto_now_add=True, editable=False)
- view_count = models.IntegerField(_('view count'), default=1)
+ slug = models.SlugField('slug', max_length=120, db_index=True)
+ text = models.TextField('tekst')
+ created_by = models.ForeignKey(User, models.SET_NULL, null=True)
+ created_from = models.TextField('dodatkowe informacje', null=True, blank=True)
+ created_at = models.DateTimeField('data utworzenia', auto_now_add=True, editable=False)
+ seen_at = models.DateTimeField('data ostatniego obejrzenia', auto_now_add=True, editable=False)
+ view_count = models.IntegerField('licznik obejrzeń', default=1)