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
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
>>
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
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
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 =
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo