mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
Remove active field on study group
This commit is contained in:
parent
a30e2ea4c5
commit
a006aa25f4
2 changed files with 17 additions and 1 deletions
|
@ -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',
|
||||||
|
),
|
||||||
|
]
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue