try restore

This commit is contained in:
2024-01-02 15:23:29 +01:00
47 changed files with 1132 additions and 79 deletions

View File

@ -3,12 +3,10 @@ from django.db.models import IntegerField
from django.contrib.auth.models import User
from django.contrib import admin
from typing import List
# Create your models here.
class ChatChannelModel(models.Model):
def create(self, users_id: List[int]):
def create(self, users_id: [int]):
self.save()
for user_id in users_id:
ChatMemberModel(channel_id = self.pk, member_id = user_id).save()