[后端]修改group.models里joinGroupRequest.添加了accept字段,用于标识此次请求是否被接受,用于前台展示
This commit is contained in:
19
group/migrations/0005_joingrouprequest_accepted.py
Normal file
19
group/migrations/0005_joingrouprequest_accepted.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('group', '0004_merge'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='joingrouprequest',
|
||||
name='accepted',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
@@ -36,6 +36,6 @@ class JoinGroupRequest(models.Model):
|
||||
create_time = models.DateTimeField(auto_now_add=True)
|
||||
# 是否处理
|
||||
status = models.BooleanField(default=False)
|
||||
|
||||
accepted = models.BooleanField(default=False)
|
||||
class Meta:
|
||||
db_table = "join_group_request"
|
||||
|
||||
Reference in New Issue
Block a user