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
> 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
; 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
> *
("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
>
>>
>>
>> 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
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
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
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.
>
>
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.
>
>
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.
>
>
>
> *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
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
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
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
> 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
>
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
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>
>
>
>
&
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
=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
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
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
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
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
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
> 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
>
>
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
>
>
>
>
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
”, 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
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
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
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
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
32 matches
Mail list logo