models.py 486 B

123456789101112131415
  1. from django.db import models
  2. from glitchtip.base_models import CreatedModel
  3. class UserReport(CreatedModel):
  4. project = models.ForeignKey("projects.Project", on_delete=models.CASCADE)
  5. issue = models.ForeignKey("issues.Issue", null=True, on_delete=models.CASCADE)
  6. event_id = models.UUIDField()
  7. name = models.CharField(max_length=128)
  8. email = models.EmailField()
  9. comments = models.TextField()
  10. class Meta:
  11. unique_together = (("project", "event_id"),)