chat avatars
This commit is contained in:
SDE
2023-10-22 17:42:21 +03:00
parent 3a9b421503
commit 4ac3349377
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class LoginForm(forms.Form):
class RegistrationForm(forms.Form):
from .models import account_type_choices
account_type = forms.ChoiceField(choices=account_type_choices, initial='sender', required=True)
# account_type = forms.ChoiceField(choices=account_type_choices, initial='sender', required=True)
firstname = forms.CharField(required=False)
lastname = forms.CharField(required=False)
country = forms.CharField(required=False)

View File

@@ -1,7 +1,7 @@
{% load static %}
<div class="tab_user_messanger{% if item.id == cur_receiver.id %} select{% endif %}" onclick="selectedUserMessenger(null,{{ item.id }})" data-cur-receiver-item="{{ item.id }}">
<div class="left-part-tab-user">
<img class="user_avatar_messenger" src="{% if item.user_profile.avatar %}{{ MEDIA_URL }}{{ item.user_profile.avatar.url }}{% else %}{% static "img/svg/User.svg" %}{% endif %}" alt="{{ item.user_profile }}" />
<img class="user_avatar_messenger" src="{% if item.user_profile.avatar %}{{ MEDIA_URL }}{{ item.user_profile.avatar }}{% else %}{% static "img/svg/User.svg" %}{% endif %}" alt="{{ item.user_profile }}" />
<div class="status_user">
</div>
</div>