Remove active field on study group

This commit is contained in:
Keannu Bernasol 2023-09-26 20:30:36 +08:00
parent a30e2ea4c5
commit a006aa25f4
2 changed files with 17 additions and 1 deletions

View file

@ -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',
),
]

View file

@ -9,7 +9,6 @@ class StudyGroup(models.Model):
name = models.CharField(max_length=48) name = models.CharField(max_length=48)
location = gis_models.PointField(blank=True, null=True, srid=4326) location = gis_models.PointField(blank=True, null=True, srid=4326)
subject = models.ForeignKey(Subject, on_delete=models.CASCADE) subject = models.ForeignKey(Subject, on_delete=models.CASCADE)
active = models.BooleanField(default=False)
timestamp = models.DateField(auto_now_add=True) timestamp = models.DateField(auto_now_add=True)
landmark = models.ForeignKey( landmark = models.ForeignKey(
'landmarks.Landmark', on_delete=models.SET_NULL, null=True) 'landmarks.Landmark', on_delete=models.SET_NULL, null=True)