Source code for intranet.apps.feedback.models

from django.conf import settings
from django.db import models


[docs]class Feedback(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, on_delete=models.SET_NULL) comments = models.CharField(max_length=50000) date = models.DateTimeField(auto_now=True) class Meta: ordering = ["-date"] def __str__(self): return f"{self.user} - {self.date}"