From f50f18aceee468f9050e101288210240bab79d6d Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 11 Apr 2024 22:32:40 +0300 Subject: [PATCH] dd --- .../__pycache__/models.cpython-310.pyc | Bin 5185 -> 5177 bytes .../0025_remove_item_project_item_customer.py | 24 ++++++++++++++++++ ...item_project_item_customer.cpython-310.pyc | Bin 0 -> 888 bytes osinaweb/billing/models.py | 2 +- osinaweb/db.sqlite3 | Bin 999424 -> 999424 bytes 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 osinaweb/billing/migrations/0025_remove_item_project_item_customer.py create mode 100644 osinaweb/billing/migrations/__pycache__/0025_remove_item_project_item_customer.cpython-310.pyc diff --git a/osinaweb/billing/__pycache__/models.cpython-310.pyc b/osinaweb/billing/__pycache__/models.cpython-310.pyc index 5bebdfb3cd032d7e4022a710b7d32fa8edd48c6e..9e7b55446a92b158c481bcbab804109cfb2aa8a1 100644 GIT binary patch delta 561 zcmXYt&q~}-6vn-sIFs09{zV<9c1BC9j#xnu5d^WrRHqeEBf6+cDRGif!Rf@4%tFN% zC|xLL>%MeZX4Pe1pzXF<2z`e>K<{^JAU{s-`MxjrobR=7HLGh`Lj&?TSQ%^IeYG~U zr@2Niio2bFTjb>HcCw5!x0%}5{r&CH1zp42ZzlW+C)Dox2# zng-CPClX0IioLiO(HcKA7Nu~_sEEz}JHt$w5G7hK3W#>OXRbcpfXfA%60r;nf>VliAArM9dOp-kT^rK-&$ zTj7uS&)T*;*zOhS^U+mh#f$S%PPS+1kNrOS{P7SMe Pj|tV~RT71Aniu~7CntC$ delta 554 zcmXYuKTE?v7{)ysOi~k@rVVQS4@FvQL69O26{S_H4z2aiU=az;RZ|*UFR38nB7TGS z3+UvkI5|4#;N;?9K7yN@qxVJ+?#IhL@AJIJ-Bap0rM6Wy+{0IHda&{FpsorDvBKI- zTK9ahu)JMZF0S}u=kMh4Ot=h%eW~7cy|zOc{D>Knhop2tN^m2sO#6|-zr-^dc8jtp z9?kNINe;i)^-QnpvLy(~bKEp9kCM&DU0De!*yIacmol~oj*=f)Lsu11;z&zO#CjdE z0k29<+r&~r$cPg3sg_a0QbWum%7}fqR%g-`EOQ9VV_S&89Uuq`a;osDj*}{U3xg2t z|4JNTV-k@?P((1L3`Qga6-|I*Bo3BlfD?HUY_7wYJ_b9Q20OX|YQGFu+8x=3d)~Gf z&5|0lqV^nS_)3x1ZO3e_+O%b{3})k%_hrlU=wZjSt-sO7s8EpfS<-|BeVFrGi1UFm zF#UbVMY)Y=qFd~k=MFvbSQ%=u>=5H;r+mBk(^8K@!bBnpVGM3#DRKaBv4jykbc5?G P7=H49=Zb^D diff --git a/osinaweb/billing/migrations/0025_remove_item_project_item_customer.py b/osinaweb/billing/migrations/0025_remove_item_project_item_customer.py new file mode 100644 index 00000000..cab185f3 --- /dev/null +++ b/osinaweb/billing/migrations/0025_remove_item_project_item_customer.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.5 on 2024-04-11 19:30 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('osinacore', '0065_alter_customerprofile_status'), + ('billing', '0024_remove_item_active'), + ] + + operations = [ + migrations.RemoveField( + model_name='item', + name='project', + ), + migrations.AddField( + model_name='item', + name='customer', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='osinacore.customerprofile'), + ), + ] diff --git a/osinaweb/billing/migrations/__pycache__/0025_remove_item_project_item_customer.cpython-310.pyc b/osinaweb/billing/migrations/__pycache__/0025_remove_item_project_item_customer.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..611ca0400584db5c244ce174a08218450e17b5e9 GIT binary patch literal 888 zcmY*X&2AGh5cYb1vq=yqXb}?Sm`gT7ve!f;ZtA@t+~wXE!aZ;b|FfI=oSu@A{}XG-h?=+(bCoqh*4hM>!>K4sQP0iY z$>h;vrl6ANz(fNT%koB?gYj%&LaZzxZ`#M&2eLY=FxlE@bN%~I+gJGG&E^_&Pg zR!K`rQo}{-bfDel1x%B*1j+R$N>Gg5|HN3+-zl?UcD%S$_Wy=B^?fuEp)Pg2zg|F{ zcJ=JK<#>Oh-|fj!V0s<=m`_`-I#RZ;Hpkuf9dFoB_we4f_L_js+rfm1o_4A{b1>2Y Ln%gvT?zsN|b+QF> literal 0 HcmV?d00001 diff --git a/osinaweb/billing/models.py b/osinaweb/billing/models.py index 96805bb1..1ad96577 100644 --- a/osinaweb/billing/models.py +++ b/osinaweb/billing/models.py @@ -19,7 +19,7 @@ class Item(models.Model): ) title = models.CharField(max_length=200) description = models.TextField(blank=True) - project = models.ForeignKey(Project, null=True, blank=True, on_delete=models.CASCADE) + customer = models.ForeignKey(CustomerProfile, null=True, blank=True, on_delete=models.CASCADE) type = models.ForeignKey(ProjectType, on_delete=models.CASCADE, null=True, blank=True) amount = models.FloatField(null=True) recurring = models.BooleanField(default=False) diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 895117d69d8f8c7cf26634c0be85a795d3fd3d99..73087dbbad558c0b637cb646846d1f2ef8dd8fdb 100644 GIT binary patch delta 648 zcmZo@ux)6toggiEkAZ>V3lJXzVn!hPK2gV*@!rOS5Aqz`oA_+FXY*8US1@35<`(Di zW)Nr0OD&I&Ps+^6$;?ZS&n!vJW!}6=TauBnb@LgWLPo~uW;?xhJ3U4qW&&bnAZ7t# zRv=~rVs;?r0Afxc<^p2w?RI)RhZF^XcEdn7kP*IFuwe=R_AT)|0S?S!oU5m^FW}K; z;#|GC(4d^t-=~q4l|eev5$Xy910&P;qSV~{vQ)5x;tPuMvr>~wAe`jV;*$K_)FLAT zBNJT%6J0|?1w%_KV*@KwBRvaCATV$LwUTH1ua&&q%aj?GF!0Ueoyl{AhlM+yD}i$v z$6Y2L_Aa(}96%{nO_mu9edc#E@i^G#eS3eAva^RT-z7 zU*t8I-g|>rW_o=HpFTG*iXFkuZn4JgY@6-x!uW(v^6>&AgPDIj1OF@j3;f%+^C|GJ z407QVVPt1e=jGsl PYjJW6_HVn!hPI8n!#@y^DC5Aqy*Hr$(dym>0OD;O}jaf|Q< zGDvddrIyFXC-HbQD1w=rH)%^UGPZ0!qf^Mp7};#6*KViB2*gZ4%nZaVK+FonY(UHo z#2i4(3B+7L%)Q-CkLQpgA1}~mX8tV<{4e>>@o(8I*szR$`<8f~00(AK&R^5n7w~9r zE;Km7+5T%K&-Py{dAXMYa}lhe&hkIyVg&4oBTGbbk#D!_2eImp#9#8n~0(aFbEK?$s2`kes2HPbn- z^J+}@ThHP({nd3|K@dxEy21@!?d?86eAgJ6tr<9`tA_9uPoH~{SB#~Rv&nOM=ndX( zSq2eyaaC2OHu;joq@2_wpk2+