Syntax to Generate salary for next month

21 views
Skip to first unread message

Feroz Ahmed

unread,
Jan 29, 2022, 6:50:41 PM1/29/22
to django...@googlegroups.com

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

image003.jpg
image005.jpg

AliHassanRaza Khan

unread,
Jan 30, 2022, 3:46:08 AM1/30/22
to django...@googlegroups.com
use filter method 

--
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...@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.

AliHassanRaza Khan

unread,
Jan 30, 2022, 3:47:16 AM1/30/22
to django...@googlegroups.com
Or get method if you want to retrieve a single value
Reply all
Reply to author
Forward
0 new messages