RE: Help me with the view please

2020-09-23 Thread fadhil alex
I cant seem to put together this template for adding fee, for roll#, tuition fee and remaining fee, I have managed only to create the form, can you help me with thatSent from Mail for Windows 10 From: coolguySent: Tuesday, September 22, 2020 6:10 PMTo: Django usersSubject: Re: Help me with the view

RE: Help me with the view please

2020-09-22 Thread fadhil alex
Thanks for your previous tips, and I have already created the get_absolute_url for my DetailView and It is working just finedef get_absolute_url(self):return reverse("student_detail", kwargs={"pk": self.pk})I think now I can learn from you how use views to generate my output Sent from M

RE: Help me with the view please

2020-09-21 Thread fadhil alex
Hi @coolguy, thanks for your attachments,  have created all the views and templates, and I have been working on them for my new web app, for this new models will it be easy for more implement or auto check paid all checkbox all payments have been completed, please, how? Sent from Mail for Windows 1

RE: Help me with the view please

2020-09-16 Thread fadhil alex
Since model design is where I very much struggle, and I think  my fee management system models are not well design, so I need your help in redesigning my models please Sent from Mail for Windows 10 From: coolguySent: Wednesday, September 16, 2020 5:31 PMTo: Django usersSubject: Re: Help me with the

RE: Help me with the view please

2020-09-15 Thread fadhil alex
Thanks for your valuable information, it seems my models are not well constructed, I will first work on them.Don’t you have a YouTube channel or website or paid course somewhere like Udemy where I can learn more Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 15, 2020 10:57 PMTo

RE: Help me with the view please

2020-09-14 Thread fadhil alex
def save(self, *args, **kwargs):self.paid_fees = student.fee_set.aggregate(total_paid_fees=sum('paid_fees'))self.school_fees = first_record.school_feesself.remaining_fees = self.school_fees - self.paid_feesif self.remaining_fees == 0:self.completed = 

RE: Help me with the view please

2020-09-14 Thread fadhil alex
Thanks it has worked, but it doesn’t work with my total_paid_fees, I want to be automatically checked when school_fees substracts summation of all paid_fees, just like this solution you provided me with the last timefirst_record = student.fee_set.first() school_fees = first_record.school_fees  paid

RE: Help me with the view please

2020-09-11 Thread fadhil alex
Sorry for bothering you @coolguy, you’re the only person who seems to be nice to a Django beginner developer like me, and I would like to bother you one more timeYour solution for using methods in models is perfectly fineYou see I want school_fees to be a fixed amount, example $300So when a student

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 line