From 1c72e0bed434f967781db8dbc87743c3a2b4fb77 Mon Sep 17 00:00:00 2001 From: warrenshiv Date: Thu, 7 Dec 2023 06:30:02 +0300 Subject: [PATCH] Added the category field in the Artist model --- .../__pycache__/models.cpython-310.pyc | Bin 4337 -> 4562 bytes .../__pycache__/serializers.cpython-310.pyc | Bin 4035 -> 4035 bytes .../migrations/0005_artist_category.py | 18 ++++++++++++++++++ .../0005_artist_category.cpython-310.pyc | Bin 0 -> 827 bytes backend/artistsmgmt/models.py | 11 +++++++++++ 5 files changed, 29 insertions(+) create mode 100644 backend/artistsmgmt/migrations/0005_artist_category.py create mode 100644 backend/artistsmgmt/migrations/__pycache__/0005_artist_category.cpython-310.pyc diff --git a/backend/artistsmgmt/__pycache__/models.cpython-310.pyc b/backend/artistsmgmt/__pycache__/models.cpython-310.pyc index bd18d2c52c749d32a46f3cd8cab23bf372e47c04..6c623076e40118535bacb3bbe8063c243f8ce0b3 100644 GIT binary patch delta 2015 zcma)7Pi)&%827Us$8i$JP0QAftm_}v&Y-qHVQd{MEp5}Wv9?;fNsADX7r(ad(s+D! z3k^aQ>LgBx!@IB(61N_?6$uFmxFR8r7B>(QM}&j~2g>(3T@n!MNaSDM`~E$@-}}8U zzxIDWX!_Z#A>rq{OKoaqc?Y@CiE|r)omE<+aWuLN=!qtt0E4vDQ)en`DhV!JG zi02y4^@g7-Zqn6po=QpclACgk`;u$y$tA;0yP5k^DeY#LCEJX&X$ZX_v=g=*N%h<^ zukuRRH{*nS&EJI`TdteiUa;j<`GD-)s~U<$vqy}{ds=})3*tb&+VLa~f71|jNo6{NUh#gaOAIR`-HjlMJdF?~%jF=1 za`}v?DusazoFq>-K@YjDndz0e`NbQz%QIINUz?d*79T5Pvyonj`GXzkrO>AcT7}~g zRRF@4l@91ci>*bP6CWuIi~dA`*OR=}a$$hI*oAmOUAA?wUIRR4mD!qK`!ubvWLCbmW{pmU!^DZf^BQC=tj z3g2h(dDYW*JimNz-4Fd>Yz1QM^U#4=G%vuhG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`exXy}8;dh)qpt)uKWqeL!>`UlJ}$z}GPIp6PK zL@XR;Ig}MqeVS>mMM0CsFwWh3$s26aIy-)qJ1oJ81l+ORKHAJ&=m88jg|sau_^U7ugRd(W#bEZ?kNUumc2Mi5d# zO{(n#K8*mWObsp{`hEoWPtiD*InCb5mdRDY)#Gejx{QgDr5a$%@42g7+S@?=XA%(# z=_M{(vS&}$$UO{oL{X7FwY#T#__wl>=3}nIX2PQ$w!!K8d6%8fjeOFkAB-*|R1vTi z5UkzAQA<)sLOO+v1-@*BKhGMTxI`s7(f1w2RspR|MPfhY?u?5XR1kTDYK2VIxUoaa z8VqClmk?e?c!gD+!E9SUuq|isg$6gpc-L97E*pv=+luiw+!m+sgR`y+nZ7O*>9V)- zGbaBO78^n=0vE0VKcE6t*L!V0=Qf)Efw-jI_ADk+354RCSpca>6 abdEjl81Bs5#L_HMFbkc9F3YjVS@$0o_e4(s diff --git a/backend/artistsmgmt/__pycache__/serializers.cpython-310.pyc b/backend/artistsmgmt/__pycache__/serializers.cpython-310.pyc index 8d6bb7328573cfa1aa371d5bf5642e339e5ca993..7fbcbfa59043edd29d4955469e2804ee17add29f 100644 GIT binary patch delta 20 acmX>se^{P7pO=@50SFS!3O91^;0FLS?gZ`t delta 20 acmX>se^{P7pO=@50SKmb7Hs6+!4Cj9P6c%U diff --git a/backend/artistsmgmt/migrations/0005_artist_category.py b/backend/artistsmgmt/migrations/0005_artist_category.py new file mode 100644 index 0000000..44d8b6f --- /dev/null +++ b/backend/artistsmgmt/migrations/0005_artist_category.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-12-07 03:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('artistsmgmt', '0004_artist_photo_artist_profession'), + ] + + operations = [ + migrations.AddField( + model_name='artist', + name='category', + field=models.CharField(choices=[('', 'Select Category'), ('visual artists', 'Visual Artists'), ('performing artists', 'Performing Artists'), ('literary artists', 'Literary Artists'), ('fashion artists', 'Fashion Artists')], default='', max_length=100), + ), + ] diff --git a/backend/artistsmgmt/migrations/__pycache__/0005_artist_category.cpython-310.pyc b/backend/artistsmgmt/migrations/__pycache__/0005_artist_category.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6b8f9441700e6eef9968e5b11e8cbdc6cb9919b9 GIT binary patch literal 827 zcmYjP!EVz)5Z(3KiEU^T<$&N;2?@!Ux`%QCp;na&2dE-NLdX|u>)F^2wm02%faD6- z-Z^vQm-fo3zkr0w*p8E~G^2epPxEGHRvsMq1kcY`HzKnL`O|=h$3}35reB}~0<<6{ zjc92_7A0>9SipV|V1h2#cNQ_QXC!d$kV^u~_+_3dUgxsXW>88Hg-)8(!{Z`2L(`|| z1c@k+$O4+uhzWb)Gy-C<7^Vd5Ulbe|!0?uVd&`jFf`@Xx@jmoADEf%2I@h%>)3P?t zPfkuw<1P{}Gg-?WP;xG`#@@`J%NsZ0wMeB}2M*RDo6$@ZBB_rq`mnV*{F3VxFOIev zo5PPCKJPRGYcp92HJ7T)t8~YjO!u)pb6n)LP+YBdyz%=!vS*FvTxZzjjx@U52DTjK z;o$B7UBJvR$z+}gZH6G`d{xxA1O6>8M3vSV=KXdHam7nv?AAN;ToiB>c*c#}cpMu) zj*+)21l}LV@eRJX;Wh}wQdA(SBo|uYhatv22e@o%DAqvlBIByX#+NvYZvDTBdWzZB z{rwbXvJ~N0u9T?4sgetvvJPj{cOmcQ7+&+_GwSrX*=4x@Od)RdWxvRNX~)a8YJTeg zO;6Cd#A5cn?O4>J6Kel+@7w%UU>gq>yh`OUT(@s%J8zTwF1y<^tYh5Q-8A0NrgWn* Hww|#6q$l(1 literal 0 HcmV?d00001 diff --git a/backend/artistsmgmt/models.py b/backend/artistsmgmt/models.py index 29cc283..6f92811 100644 --- a/backend/artistsmgmt/models.py +++ b/backend/artistsmgmt/models.py @@ -8,9 +8,20 @@ class Artist(AbstractUser): # Any additional fields or methods for the User model + + CATEGORY_CHOICES = [ + ('', 'Select Category'), + ('visual artists', 'Visual Artists'), + ('performing artists', 'Performing Artists'), + ('literary artists', 'Literary Artists'), + ('fashion artists', 'Fashion Artists'), + ] + profession = models.CharField(max_length=100, null=True, blank=True) photo = models.ImageField( upload_to='profile_photos/', null=True, blank=True) + category = models.CharField( + max_length=100, choices=CATEGORY_CHOICES, default='') pass class Meta: