Files
file_message_transfer/main/__pycache__/forms.cpython-310.pyc

28 lines
4.6 KiB
Plaintext
Raw Normal View History

2025-01-05 10:45:32 +08:00
o
<00><>ygl<00>@s<>ddlmZddlmZddlmZmZmZmZm Z ddl
m Z ddl m Z Gdd<08>de <0A>ZGd d
<EFBFBD>d
ej<0F>ZGd d <0C>d ej<0F>ZGd d<0E>dej<0F>ZGdd<10>dej<13>ZGdd<12>dej<13>ZGdd<14>dej<0F>ZdS)<16>)<01>forms)<01>
validators<EFBFBD>)<05>File<6C>Message<67> PublicMessage<67>
PublicFile<EFBFBD>
Friendship)<01>get_user_model)<01>UserCreationFormcs.eZdZGdd<02>dej<04>Z<04>fdd<04>Z<05>ZS)<05>CustomUserCreationFormc@s$eZdZdddd<04>Zdddd<04>ZdS) zCustomUserCreationForm.Meta<74> 用户名u密码u 确认密码)<03>username<6D> password1<64> password2uI150个字符以内。可以包含中文、字母、数字和 @/./+/-/_。u<E38082>您的密码不能与其他个人信息太相似。
您的密码必须包含至少 8 个字符。
您的密码不能是常用密码。
您的密码不能全部是数字。u再次输入密码以确认。N)<05>__name__<5F>
__module__<EFBFBD> __qualname__<5F>labels<6C>
help_texts<EFBFBD>rr<00>YC:\Users\xiaji\Documents\个人文件夹\夏骥\文件和留言中转系统\main\forms.py<70>Metas<06>
<EFBFBD>rcs,t<00>j|i|<02><01>t<02>dd<02>g|jd_dS)Nz^[\w\u4e00-\u9fa5@.+-_]+$u=用户名只能包含中文、字母、数字和 @/./+/-/_。r)<05>super<65>__init__r<00>RegexValidator<6F>fields<64><03>self<6C>args<67>kwargs<67><01> __class__rrrs <02><10>zCustomUserCreationForm.__init__)rrrr rr<00> __classcell__rrr!rr s r cs:eZdZejdddd<04>ZGdd<06>d<06>Z<06>fdd<08>Z<07>ZS) <09>FileUploadFormFu设为公开文件u0如果勾选,此文件将对所有用户可见)<03>required<65>label<65> help_textc@s$eZdZeZgd<01>Zdddd<05>ZdS)zFileUploadForm.Meta)<04>file<6C> description<6F> shared_with<74> is_public<69>文件<E69687>描述u 共享用户)r(r)r*N)rrrr<00>modelrrrrrrr%<00>
<EFBFBD>rcs"t<00>j|i|<02><01>d|jd_dS)NFr*)rrrr%rr!rrr.szFileUploadForm.__init__) rrrr<00> BooleanFieldr+rrr#rrr!rr$s<06> r$c@<00>eZdZGdd<02>d<02>ZdS)<04> MessageFormc@s$eZdZeZgd<01>Zdddd<01>ZdS)zMessageForm.Meta)<03>
recipients<EFBFBD>contentr(u 收件人u 消息内容u附件N)rrrrr.rrrrrrr3r/rN<>rrrrrrrrr22<00>r2c@r1)<04>PublicMessageFormc@s4eZdZeZdgZddiZdejddd<05>d<06>iZ dS)zPublicMessageForm.Metar4u 留言内容<E58685>u您的留言...<2E><02>rows<77> placeholder<65><01>attrsN)
rrrrr.rrr<00>Textarea<65>widgetsrrrrr=s<04><08>rNr5rrrrr7<r6r7c@s2eZdZejddejddd<05>d<06>d<07>Zdd <09>Zd
S) <0B>FriendRequestFormr <00><>u!输入要添加的好友用户名z"w-full px-3 py-2 border rounded-md)r;<00>classr<)r&<00>
max_length<EFBFBD>widgetcCs@|jd}t<01>}z
|jj|d<02>}W|S|jyt<05>d<03><01>w)Nr)ru用户不存在)<07> cleaned_datar
<00>objects<74>get<65> DoesNotExistr<00>ValidationError)rr<00>User<65>userrrr<00>clean_usernameQs
<0E>
<02>z FriendRequestForm.clean_usernameN)rrrr<00> CharField<6C> TextInputrrLrrrrr@Gs<08><06> r@c@s&eZdZddgZejeejdd<04>ZdS)<06>FriendActionForm)<02>acceptu接受)Zrejectu拒绝u操作)<03>choicesrDr&N)rrrZACTION_CHOICESr<00> ChoiceField<6C> RadioSelect<63>actionrrrrrOZs<04>
<EFBFBD>rOc@r1)<04>PublicFileFormc@s8eZdZeZddgZddd<05>Zdejddd<08>d <09>iZ d
S) zPublicFileForm.Metar(r)r,r-)r(r)r8u文件描述...r9r<N)
rrrrr.rrrr>r?rrrrrgs<06><08>rNr5rrrrrUfr6rUN)<17>djangor<00> django.corer<00>modelsrrrrr <00>django.contrib.authr
<00>django.contrib.auth.formsr r <00> ModelFormr$r2r7<00>Formr@rOrUrrrr<00><module>s