From a006aa25f42803336b4809f4899720286049d718 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 26 Sep 2023 20:30:36 +0800 Subject: [PATCH] Remove active field on study group --- .../migrations/0002_remove_studygroup_active.py | 17 +++++++++++++++++ stude/study_groups/models.py | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 stude/study_groups/migrations/0002_remove_studygroup_active.py diff --git a/stude/study_groups/migrations/0002_remove_studygroup_active.py b/stude/study_groups/migrations/0002_remove_studygroup_active.py new file mode 100644 index 0000000..90efc49 --- /dev/null +++ b/stude/study_groups/migrations/0002_remove_studygroup_active.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.5 on 2023-09-26 12:30 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('study_groups', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='studygroup', + name='active', + ), + ] diff --git a/stude/study_groups/models.py b/stude/study_groups/models.py index 63f2b31..239f086 100644 --- a/stude/study_groups/models.py +++ b/stude/study_groups/models.py @@ -9,7 +9,6 @@ class StudyGroup(models.Model): name = models.CharField(max_length=48) location = gis_models.PointField(blank=True, null=True, srid=4326) subject = models.ForeignKey(Subject, on_delete=models.CASCADE) - active = models.BooleanField(default=False) timestamp = models.DateField(auto_now_add=True) landmark = models.ForeignKey( 'landmarks.Landmark', on_delete=models.SET_NULL, null=True)