OwlCyberSecurity - MANAGER
Edit File: utils.cpython-39.pyc
a ���e� � @ s d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZ d d lmZ d d lmZ d dlmZ dd � Zdd� Zde� ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� dee�ZG dd� dee e�Z!dd� Z"dd� Z#dS )� N)�UserList)�settings)�ValidationError)�get_default_renderer)�timezone)�RemovedInDjango50Warning)�escape�format_html_join)� mark_safe)�gettext_lazy)�get_docs_versionc C s | sdS | � dd��� S )z%Convert 'first_name' to 'First name'.� �_� )�replace� capitalize)�name� r �S/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/django/forms/utils.py�pretty_name s r c C sl g }g }| � � D ]:\}}t|t�r4|rJ|�|f� q|dur|�||f� qtddt|��tddt|�� S )a� Convert a dictionary of attributes to a single string. The returned string will contain a leading space followed by key="value", XML-style pairs. In the case of a boolean value, the key will appear without a value. It is assumed that the keys do not need to be XML-escaped. If the passed dictionary is empty, then return an empty string. The result is passed through 'mark_safe' (by way of 'format_html_join'). Nr z {}="{}"z {})�items� isinstance�bool�appendr �sorted)�attrsZkey_value_attrs� boolean_attrs�attr�valuer r r �flatatt s �r ag The "default.html" templates for forms and formsets will be removed. These were proxies to the equivalent "table.html" templates, but the new "div.html" templates will be the default from Django 5.0. Transitional renderers are provided to allow you to opt-in to the new output style now. See https://docs.djangoproject.com/en/%s/releases/4.1/ for more detailsc @ s&