Sunday, January 30, 2022

Re: Syntax to Generate salary for next month

Or get method if you want to retrieve a single value

On Sun, 30 Jan 2022, 1:45 pm AliHassanRaza Khan, <alihsnrazakhan@gmail.com> wrote:
use filter method 

On Sun, 30 Jan 2022, 4:50 am Feroz Ahmed, <feroz.resh@gmail.com> wrote:

Hi,

I came across the problem, how to generate salary for upcoming month ( records are of month January in db)

 

 

I have records in django db.

Insert of new record

update / delete / hide    of record functions are ok

 

Request your support, to generate the salary for month February (by clicking on generate salary button) see pic2 below.

 

syntax to code in views??

 

model.py

Fields are :    month , cmonth, name, salary

 

* month field is in list format , (values from January to December)

                                                                                          pic1

                                                                                         

 

                                                                                          pic2

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/61f5d2a5.1c69fb81.f300.5a1c%40mx.google.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD54KQaYkvbm-oki3ijjom13ZSviqyMFs%2ByfznuP3%3DvdNQPMFA%40mail.gmail.com.

No comments:

Post a Comment