diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-09-29 15:20:16 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-09-29 15:20:16 +0100 |
commit | 7ad343a875a8dbd667824685065b905b14a49870 (patch) | |
tree | d0b9a244d9ad57dc34b2a09eece6fc7a6446c20d /ctrack/register/models.py | |
parent | 5314ffb3308a02de8e8bd51cb4ce1784181a4a81 (diff) |
Can save new Engagement Event form with hidden user field - PAIN
Diffstat (limited to '')
-rw-r--r-- | ctrack/register/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctrack/register/models.py b/ctrack/register/models.py index 4231dd0..642d69b 100644 --- a/ctrack/register/models.py +++ b/ctrack/register/models.py @@ -54,19 +54,19 @@ class EngagementEvent(models.Model): type = models.ForeignKey(EngagementType, on_delete=models.CASCADE) short_description = models.CharField( - max_length=50, help_text="Short description of the event" + max_length=50, help_text="Short description of the event. Use Comments field for full detail." ) participants = models.ManyToManyField(Person) user = models.ForeignKey(get_user_model(), on_delete=models.SET(get_sentinel_user)) date = models.DateTimeField() end_date = models.DateTimeField(blank=True, null=True) - document_link = models.URLField(max_length=1000, blank=True, null=True) + document_link = models.URLField(max_length=1000, blank=True, null=True, help_text="URL only - do not try to drag a file here") response_date_requested = models.DateField(blank=True, null=True) response_received = models.DateField(blank=True, null=True) related_caf = models.ForeignKey( - CAF, blank=True, on_delete=models.CASCADE, null=True + CAF, blank=True, on_delete=models.CASCADE, null=True, help_text="If the event relates to a CAF, refer to it here." ) - comments = models.TextField(max_length=1000, blank=True, null=True) + comments = models.TextField(max_length=1000, blank=True, null=True, help_text="Use this to provide further detail about the event.") def days_to_response_due(self) -> Optional[Dict[int, str]]: if self.response_date_requested: |