mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Added missing landmarks field in study group model and fixed serializer for users
This commit is contained in:
parent
bf683b08f2
commit
5af961c941
3 changed files with 31 additions and 2 deletions
20
stude/study_groups/migrations/0002_studygroup_landmark.py
Normal file
20
stude/study_groups/migrations/0002_studygroup_landmark.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.3 on 2023-09-24 10:59
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('landmarks', '0001_initial'),
|
||||
('study_groups', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='studygroup',
|
||||
name='landmark',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='landmarks.landmark'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue