fix
This commit is contained in:
parent
52b09cd692
commit
5a3e696eac
@ -48,7 +48,7 @@ class AccountView(BaseView):
|
|||||||
elif friendship.verified or friendship.from_user == self.request.user:
|
elif friendship.verified or friendship.from_user == self.request.user:
|
||||||
friendship.delete()
|
friendship.delete()
|
||||||
else:
|
else:
|
||||||
if self.request.POST["todo"] == "yes":
|
if self.request.POST["to_do"] == "yes":
|
||||||
friendship.verified = True
|
friendship.verified = True
|
||||||
friendship.save()
|
friendship.save()
|
||||||
bot.send_message(self.context["account"].userinfo.telegram_chat_id,
|
bot.send_message(self.context["account"].userinfo.telegram_chat_id,
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{% else %}{% if friendship_status == 2 %}
|
{% else %}{% if friendship_status == 2 %}
|
||||||
<button class="btn btn-info">Приглашение отправлено</button> <button class="btn btn-danger" type="submit" name="to_do" value="delete">Отменить</button>
|
<button class="btn btn-info">Приглашение отправлено</button> <button class="btn btn-danger" type="submit" name="to_do" value="delete">Отменить</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<button class="btn btn-info" type="submit" name="to_do" value="yes">Ответить на приглашение</button> <button class="btn btn-danger" type="submit" name="to_do" value="no">Отклонить</button>
|
<button class="btn btn-info" type="submit" name="to_do" value="yes">Принять</button> <button class="btn btn-danger" type="submit" name="to_do" value="no">Отклонить</button>
|
||||||
{% endif %}{% endif %}{% endif %}
|
{% endif %}{% endif %}{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user