<div class="d-flex justify-content-between bg-white mx-1 overflow-hidden" style="height: calc(100vh - 52px)"><div class="d-flex justify-content-between bg-white mx-1" style="height: calc(100vh - 52px); overflow-y: auto;"> class Model2(models.Model):
m2m_field = models.ManyToManyField(to=Model1, related_name='second_models')m1 = Model1.object.get(...) #он просто у меня есть
second_model_queryset = m1.second_models.all() класс Сообщение(модели.Модель):
отправитель = модели.ИностранныйКлючь(относиться_к_имени="отправленные_сообщения")
получатель = модели.ИностранныйКлючь(относиться_к_имени="полученные_сообщения")
дата_отправка = модели.ДатаВремяПоле(автоматический_сейчас_добавить=Правда)
текст_сообщения = модели.ТекстовыйПоле()
email = request.POST['emails']
passw = request.POST['passwords']
form = Accounts(email=email, password=passw)form = Accounts(request.POST) html_message: If html_message is provided, the resulting email will be a multipart/alternative email with message as the text/plain content type and html_message as the text/html content type.