How to delete user salary record , but want to keep history till deleted date

2022-01-07 Thread Feroz Ahmed
Hi, How to delete user salary record , but want to keep history till deleted date. ex: 1. Month June 2. Month July 3. Month Aug 4. delete user record from Sep. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: How to delete user salary record , but want to keep history till deleted date

2022-01-07 Thread Feroz Ahmed
tive > > On Fri, 7 Jan, 2022, 7:22 pm Feroz Ahmed, wrote: > >> Hi, >> How to delete user salary record , but want to keep history till deleted >> date. >> >> ex: >> >>1. Month June >>2. Month July >>3. Month Aug >>

Re: How to delete user salary record , but want to keep history till deleted date

2022-01-08 Thread Feroz Ahmed
filter > > queryset = Model.objects.filter(status='Active') > > > If you want to use delete, I've used before django-simple-history. the > package records all history for models and objects and let you query that > information. > > > Regards, > > Jul

Re: Solved: How to delete user salary record , but want to keep history till deleted date

2022-01-08 Thread Feroz Ahmed
Hi , it works, it was my confusion,, i update record status as Inactive so , it hide the record. thanks for your support On Saturday, January 8, 2022 at 7:47:17 PM UTC+5:30 Feroz Ahmed wrote: > No errors: but no any actions, > all records shows in home1.html > not excluding the

Re: order_by on the basis of time difference (updated_at - created_at)

2022-01-21 Thread Feroz Ahmed
Hi, in VIEWS def example=(request): fm=ExampleModel.object.created_at ExMd=ExampleModel.objects.filter(created_at__lt={'fm'})... ordering conditions. On Friday, January 21, 2022 at 10:25:13 AM UTC+5:30 aadil1...@gmail.com wrote: > class ExampleModel(models.Model): > is_active =

copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
Hi, I am new to django, I have field1 as dropdown with mentioned months name filed2 is none and excluded in forms I want while inserting the data , if I select month , it should insert the same value in field2 request your support Ex: field1 .value('JAN') field2 is excluded from f

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
t('val1') #if method is get you can use val2 = request.POST.get('val1') #then you can use val2 to in sert it in the dB Model.objects.create(val1=request.GET['val1'], val2=val2) Regards Ammar Mohammed Tel: 249113075979 On 28 Jan 2022, 21:52 +0200, Feroz Ahmed , wrot

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
dB Model.objects.create(val1=request.GET['val1'], val2=val2) Regards Ammar Mohammed Tel: 249113075979 On 28 Jan 2022, 21:52 +0200, Feroz Ahmed , wrote: Hi, I am new to django, I have field1 as dropdown with mentioned months name filed2 is none and excluded in forms I want whi

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
hammed Tel: 0113075979 On 28 Jan 2022, 23:52 +0200, Feroz Ahmed , wrote: Hi, Thanks for your support below are the views and models, plz guide, no errors but no success Views.py (cmonth is none value and excluded in form) month is insertable from form templatedef inse

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
ield1'] formentry.save() This is untested but i am very sure that this works Regards Am Fr., 28. Jan. 2022 um 20:51 Uhr schrieb Feroz Ahmed : Hi, I am new to django, I have field1 as dropdown with mentioned months name filed2 is none and excluded in forms I want while inserting the data , i

Syntax to Generate salary for next month

2022-01-29 Thread Feroz Ahmed
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 / hideof record functions are ok Request your support, to generate the salary for month February (by cl

Name Fields values

2022-02-07 Thread Feroz Ahmed
Hi Everyone. my personal project for marksheet is going on. all codes in views are fine fields are: Name English marks Science Marks Computer Marks Avg Sum Total i need help , when i bring all stored record into template. *I need name field as list (dropdown list / Select list )and all the name

RE: Django ORM bug(probably, not)

2022-02-07 Thread Feroz Ahmed
Hi try this MyObject.objects.filter(id__lte=10[i.id for i in objects_to_delete]).delete() From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Bobosher Musurmonov Sent: 07 February 2022 17:05 To: Django us

RE: migrations: "no changes detected"

2022-02-08 Thread Feroz Ahmed
checkout u not forgot to add app in installed app in settings.py if still the issue , forward your settings.py best practice , try to solve the issue from current configuration Regards From: 'Delvin Alexander' via Django users [mailto:django-users@googlegroups.com] Sent: 08 February

RE: Static files not found

2022-02-13 Thread Feroz Ahmed
if staticfiles folder not exists in project, in that case you have to create folder name as staticfiles in project level From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Dev femibadmus Sent: 14 February 2022 02:43 To: django-users@googlegroups

Salary Generate

2022-02-15 Thread Feroz Ahmed
Dear All. i am stuck at point to generate salaries for upcoming month, as i already have last month January data as fields(month, name , gross sal, tax deduction, net sal) and it has records of 35 (employees) in form template i have placed submit button to generate salaries for February. Pl