Re: Help me with the view please

2020-09-23 Thread coolguy
nd remaining fee, I have managed only to create the form, can > you help me with that > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 22, 2020 6:10 PM > *To: *Django use

Re: Help me with the view please

2020-09-23 Thread coolguy
> tuition fee and remaining fee, I have managed only to create the form, can > you help me with that > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 22, 2020 6:1

Re: Help me with the view please

2020-09-23 Thread coolguy
; tuition fee and remaining fee, I have managed only to create the form, can > you help me with that > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 22, 2020 6:10 PM > *

RE: Help me with the view please

2020-09-23 Thread fadhil alex
("student_detail", kwargs={"pk": self.pk})I think now I can learn from you how use views to generate my output Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 22, 2020 4:32 AMTo: Django usersSubject: Re: Help me with the view please I have made some changes to

Re: Help me with the view please

2020-09-22 Thread Let's Get Going
> >> >> >> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >> Windows 10 >> >> >> >> *From: *coolguy >> *Sent: *Thursday, September 17, 2020 6:26 AM >> *To: *Django users >> *Subject: *Re: Help me with the vi

RE: Help me with the view please

2020-09-22 Thread fadhil alex
my output Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 22, 2020 4:32 AMTo: Django usersSubject: Re: Help me with the view please I have made some changes to the model.py and now methods/functions are properties(@property). It's of personal preference and you wil

Re: Help me with the view please

2020-09-21 Thread coolguy
rosoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Thursday, September 17, 2020 6:26 AM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > If you are using sqllite3 then make a copy of it and delet

Re: Help me with the view please

2020-09-21 Thread coolguy
ent: *Thursday, September 17, 2020 6:26 AM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > If you are using sqllite3 then make a copy of it and delete the existing > sqllite3 file from your project. Keep the old file as you may need it. > >

Re: Help me with the view please

2020-09-21 Thread coolguy
ent: *Thursday, September 17, 2020 6:26 AM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > If you are using sqllite3 then make a copy of it and delete the existing > sqllite3 file from your project. Keep the old file as you may need it. > >

Re: Help me with the view please

2020-09-21 Thread coolguy
gt; *Sent: *Thursday, September 17, 2020 6:26 AM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > If you are using sqllite3 then make a copy of it and delete the existing > sqllite3 file from your project. Keep the old file as you may need it.

Re: Help me with the view please

2020-09-21 Thread coolguy
> > > > *From: *coolguy > *Sent: *Thursday, September 17, 2020 6:26 AM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > If you are using sqllite3 then make a copy of it and delete the existing > sqllite3 file from your project. Keep t

RE: Help me with the view please

2020-09-21 Thread fadhil alex
10 From: coolguySent: Thursday, September 17, 2020 6:26 AMTo: Django usersSubject: Re: Help me with the view please If you are using sqllite3 then make a copy of it and delete the existing sqllite3 file from your project. Keep the old file as you may need it. Here are project files... i quickly make

Re: Help me with the view please

2020-09-16 Thread coolguy
s 10 > > > > *From: *coolguy > *Sent: *Wednesday, September 16, 2020 5:31 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > There are a lot of courses but those are very basic and keep on talking > about same thing that you might ha

RE: Help me with the view please

2020-09-16 Thread fadhil alex
ke this, perhaps maybe you can see what I’m trying to doSent from Mail From: coolguySent: Monday, September 14, 2020 11:53 PMTo: Django usersSubject: Re: Help me with the view please not sure what are you looking for.. but based on your model setup... school fees is setup once so we picked it up from f

Re: Help me with the view please

2020-09-16 Thread coolguy
> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 15, 2020 10:57 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > Isn't this 'paid_fee' used to record the quarterly/monthly payments from >

RE: Help me with the view please

2020-09-15 Thread fadhil alex
PMTo: Django usersSubject: Re: Help me with the view please Isn't this 'paid_fee' used to record the quarterly/monthly payments from students? and this field will have multiple records?  It seems you are looking to save an accumulated paid_fee (total_paid_fees) somewhere in table. If

Re: Help me with the view please

2020-09-15 Thread coolguy
self.completed = False > > > > *super*().save(*args, **kwargs) > > I have tried doing it like this, perhaps maybe you can see what I’m trying > to do > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> > > > &

RE: Help me with the view please

2020-09-14 Thread fadhil alex
  paid_fees = student.fee_set.aggregate(total_paid_fees=Sum('paid_fees'))   balance_fees =  school_fees - paid_fees["total_paid_fees"]   Sent from Mail for Windows 10 From: coolguySent: Monday, September 14, 2020 9:09 PMTo: Django usersSubject: Re: Help me with the view plea

Re: Help me with the view please

2020-09-14 Thread coolguy
=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Monday, September 14, 2020 9:09 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > Its simple... in your fee models' save method check that > self.remaining

RE: Help me with the view please

2020-09-14 Thread fadhil alex
  paid_fees = student.fee_set.aggregate(total_paid_fees=Sum('paid_fees'))   balance_fees =  school_fees - paid_fees["total_paid_fees"]   Sent from Mail for Windows 10 From: coolguySent: Monday, September 14, 2020 9:09 PMTo: Django usersSubject: Re: Help me with the view please Its s

Re: Help me with the view please

2020-09-14 Thread coolguy
for > Windows 10 > > > > *From: *coolguy > *Sent: *Friday, September 11, 2020 8:51 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > Technically your Fee model is designed incorrectly. You should have > separate models for &#x

Re: Help me with the view please

2020-09-14 Thread coolguy
gt; [image: image.png] > > > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Friday, September 11, 2020 8:51 PM > *To: *Django users > *Subject: *Re: Help me with the view

Re: Help me with the view please

2020-09-11 Thread coolguy
2:16:27 PM UTC-4 dex9...@gmail.com > wrote: > > Thanks for helping me @coolguy,but it seems I ran into another problem, > the school fees and remaining fees somehow sums together, I want students > to pay school fees in phases, i.e, first quarter, second etc, and I want > rema

RE: Help me with the view please

2020-09-11 Thread fadhil alex
20 4:27 AMTo: Django usersSubject: Re: Help me with the view please If i choose to go with your way of calculation, i would do this... def student_detail(request, pk):student = Student.objects.get(id=pk)fees = student.fee_set.aggregate(total_paid_fees=Sum('paid_fees'), tota

Re: Help me with the view please

2020-09-10 Thread coolguy
> remaining fee to be the difference between the initial school fees which is > 100 and total fee paid. > > Thanks in advance > > > > My views.py for student > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > >

Re: Help me with the view please

2020-09-10 Thread coolguy
py for student > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 8, 2020 11:58 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > >

Re: Help me with the view please

2020-09-10 Thread coolguy
link/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 8, 2020 11:58 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > I see now what you are asking... > > > > I never do such

Re: Help me with the view please

2020-09-08 Thread coolguy
”, can you help me with that also..thanks > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 8, 2020 7:45 PM > *To: *Django users > *Subject: *Re: Help me with

Re: Help me with the view please

2020-09-08 Thread coolguy
fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *coolguy > *Sent: *Tuesday, September 8, 2020 7:45 PM > *To: *Django users > *Subject: *Re: Help me with the view please > > > > In your return line of code, you are referring to context variable but I

RE: Help me with the view please

2020-09-08 Thread fadhil alex
Thank you for your help @coolguy..but my real problem lies in writing the code for “fee_remaining”, can you help me with that also..thanks Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 8, 2020 7:45 PMTo: Django usersSubject: Re: Help me with the view please In your return

Re: Help me with the view please

2020-09-08 Thread coolguy
In your return line of code, you are referring to context variable but I don't see you assigned any value to this context variable in your code. Or if you want to send three variables i.e. "fees", "total_fees" and "fee_remaining"... you need to send them separately like return render(request, 'w

Help me with the view please

2020-09-08 Thread Dexterr Jay
My Models class Student(models.Model): name = models.CharField(max_length=200, null=True, blank=True) classroom = models.ForeignKey(‘Classroom’, on_delete=models.DO_NOTHING,blank=True, null=True) class Classroom(models.Model): name = models.CharField(max_length=40,blank=True, null=True) class Fe