aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-19 10:29:46 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-19 10:29:46 +0100
commiteaafce3ec050a0ee9f75c996bbdac74cccdd1726 (patch)
treed2bb39e1d0a095b98fa84e71343617440936201f /ctrack
parentb02ea665d8ecce3b326dc0b245027a0ce4c2de29 (diff)
user must select participant when creating a singledatimetime event based on org
Diffstat (limited to '')
-rw-r--r--ctrack/register/migrations/0005_auto_20201019_0928.py24
-rw-r--r--ctrack/register/models.py2
2 files changed, 25 insertions, 1 deletions
diff --git a/ctrack/register/migrations/0005_auto_20201019_0928.py b/ctrack/register/migrations/0005_auto_20201019_0928.py
new file mode 100644
index 0000000..ed6f6b5
--- /dev/null
+++ b/ctrack/register/migrations/0005_auto_20201019_0928.py
@@ -0,0 +1,24 @@
+# Generated by Django 3.1.2 on 2020-10-19 09:28
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organisations', '0002_auto_20201015_1955'),
+ ('register', '0004_auto_20201017_1958'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='singledatetimeevent',
+ name='participants',
+ field=models.ManyToManyField(to='organisations.Person'),
+ ),
+ migrations.AlterField(
+ model_name='singledatetimeevent',
+ name='type_descriptor',
+ field=models.CharField(choices=[('MEETING', 'Meeting'), ('PHONE_CALL', 'Phone Call'), ('VIDEO_CALL', 'Video Call'), ('EMAIL', 'Email'), ('NOTE', 'Note')], max_length=50, verbose_name='Event Type'),
+ ),
+ ]
diff --git a/ctrack/register/models.py b/ctrack/register/models.py
index 2154a11..45ee99e 100644
--- a/ctrack/register/models.py
+++ b/ctrack/register/models.py
@@ -88,7 +88,7 @@ class EventBase(AuditableEventBase):
class ThirdPartyEventMixin(models.Model):
- participants = models.ManyToManyField(Person, blank=True)
+ participants = models.ManyToManyField(Person, blank=False)
location = models.CharField(
max_length=100,
blank=True,