From a15b6000243f67d602797036ddb459384d5500b0 Mon Sep 17 00:00:00 2001 From: Sophie Morris <sm02810@surrey.ac.uk> Date: Fri, 22 Mar 2024 12:30:26 +0000 Subject: [PATCH] fixed post admin --- .../0007_alter_post_image.cpython-310.pyc | Bin 604 -> 599 bytes main/postSection/models.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/postSection/migrations/__pycache__/0007_alter_post_image.cpython-310.pyc b/main/postSection/migrations/__pycache__/0007_alter_post_image.cpython-310.pyc index 78a9881e6cbcb7cf19016e3879a99b0bc5ab4e05..f75c05bc7b92e21c80ed3bf6a387d447e5ac0a8b 100644 GIT binary patch delta 142 zcmcb^a-D@YpO=@50SF#f{7s!Uk@pm1)WjRxTtt8(MIho=ptDs>XmM&$aZGW3K}Kdw za(=F{fuV_RNor!QaZGMvW?oD|esM`~YH~?teqKy&W_nQ~h*caj`8s2?7Th4PX+@$y aBX4oo<mRW8=A_y&0(r$OKtg~?j2Qsy3@MiY delta 125 zcmcc4a)*UCpO=@50SL-vf2X!g<UPfBYvPS<o}xgJA`tN_Ouw`^wMgG1*u=m<Kexod z(AdyiKRG|w*uc<4w<I+&*H}L{F*8rUAiuaII5oK>Ge1v1H#5B`5yUFipL~fiS^#bu M*vKNW$+k>V0BBDnp#T5? diff --git a/main/postSection/models.py b/main/postSection/models.py index 229e085..b266e08 100644 --- a/main/postSection/models.py +++ b/main/postSection/models.py @@ -18,7 +18,8 @@ class post(models.Model): def __str__(self): - return self.id + #just needed to add this lil format thing here + return "{}".format(self.id) # class Meta: # indexes= [models.Index(fields=['id'])] -- GitLab