From 211859e9408f12ace085b5d738489726cd6867de Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Tue, 3 Mar 2020 14:24:07 +0100 Subject: [PATCH] add default profile pic --- apps/note/models/notes.py | 1 + media/pic/default.png | Bin 0 -> 9259 bytes note_kfet/settings/base.py | 3 +++ note_kfet/urls.py | 4 ++++ templates/member/profile_detail.html | 4 +++- 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 media/pic/default.png diff --git a/apps/note/models/notes.py b/apps/note/models/notes.py index 9e3c0a9e..ea62bd75 100644 --- a/apps/note/models/notes.py +++ b/apps/note/models/notes.py @@ -44,6 +44,7 @@ class Note(PolymorphicModel): verbose_name=_('display image'), max_length=255, blank=True, + default='pic/default.png' ) created_at = models.DateTimeField( verbose_name=_('created at'), diff --git a/media/pic/default.png b/media/pic/default.png new file mode 100644 index 0000000000000000000000000000000000000000..f933bc341619178775520150d514effb2339b10a GIT binary patch literal 9259 zcmZ`Dp%iI_EN&)SW>YF7zL)E>1YpPO@E$$8%AocB5BMnBb2CB4IV2LJ$4bv3v?ehk5%pNPQtPtCo< z68r$MQ`A-jfXalsmoIMNuR)&rs!9NQkZBWt0ku)n*9HK8PQ2h-0651_g=_$Tw;%xg zvjPC=3;>{W&u-9@!QUXX)>MT9H~;OQnv0V0GsNy{rk((Bm-@dG1Y~B@0{|O~I$Y7v zZ+bh>)Xxx;y7T-(OU$HLC3Ou%+Ak~~o(S0NQFO(R4K94YxH#}`Y+aetnfIDcZy9>s zc$LAmuE{0g^SJT>S3JQVGRXaJ`;gzzm!ZQlh7M^OVi+mAii@X76!cGxic27pHv}w6 zgHi#fCl&$QH5iM#(L^me3tvQNj2mb%p(hZKH0E=n8czWu31M>2FM0w1fB_Km%P)lv ziE0_1RB!7o*36UHZAZ-TDuP(P_Em^F%Z%V+mHlVja$^z& z=tzT~^nWFYGH}z~-3`8Z8E}E>?d?T0`p6GgDbgsDIeUAKP1iW_8B>Fk*-bIH!}Ui^ zN3oV9q~z-P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