Re: Exported filtered by date data in django

2021-11-19 Thread ramadhan ngallen
Debug by printing val1 and val2 before filtering if those vslues are dates(class) if true print expenses after filtering. Otherwise your date ranges does not contain s data as required On 20 Nov 2021, 10:49 +0300, Eugene TUYIZERE , wrote: > Dear Ramadhan, > Still it does not work > On Sat, 20 Nov

Re: Exported filtered by date data in django

2021-11-19 Thread Eugene TUYIZERE
Dear Ramadhan, Still it does not work On Sat, 20 Nov 2021 at 09:18, ramadhan ngallen wrote: > Depends on your query filter_val2 should lower than filter_val1 as the > range start from val2 to val1. > Otherwise change your parameter from val1 to val2 > EXPENSES.objects.filter(Q(created_at__range

Re: Exported filtered by date data in django

2021-11-19 Thread ramadhan ngallen
Depends on your query filter_val2 should lower than filter_val1 as the range start from val2 to val1. Otherwise change your parameter from val1 to val2 EXPENSES.objects.filter(Q(created_at__range=[filter_val2,filter_val1])) On 20 Nov 2021, 10:04 +0300, Eugene TUYIZERE , wrote: > Dear Team, > > I

Exported filtered by date data in django

2021-11-19 Thread Eugene TUYIZERE
Dear Team, I am trying to export filtered data from a django model, but I get an empty file. But when I remove the filter and add all, it works. Kindly assist to know how to export filtered data. Below is my code def exportexpenes(request): filter_val1=request.POST.get("filter1") filter_val2=req

Re: Multiple image upload using Django, Vuejs and Axiox

2021-11-19 Thread Omkar Parab
Check, whether you've added "upload_to" in your Image Field and add MEDIA_ROOT & MEDIA_URL in settings.py file or not. On Sat, Nov 20, 2021, 10:36 AM Alam Khazi wrote: > Hi, > By using Vuejs, Axiox and Django, Uploading multiple images. After > uploading images are getting in list and then tho

Multiple image upload using Django, Vuejs and Axiox

2021-11-19 Thread Alam Khazi
Hi, By using Vuejs, Axiox and Django, Uploading multiple images. After uploading images are getting in list and then those list of images names we are storing into backend in ImageField image is saving into database but not saving into media folder. ['nature6.jpg', 'nature5.jpg', 'nature4.jpg', '

ModelMultipleChoiceField - override validation

2021-11-19 Thread Earl Lapus
Hi, I have a ModelForm that has a ModelMultipleChoiceField. In the said field, I've set the queryset to none and assigned the FilteredSelectMultiple as the widget for the field. It looks like this: class MyForm(forms.ModelForm): myfield = ModelMultipleChoiceField( queryset=SomeMode

Django form

2021-11-19 Thread fawemimo olawale
pls i need a help here.. i have created allot of models and having more headache more i created it pls anybody help out!!! Send a url link to a client to fill his/her details form with different details (Client-detail, Bank-detail and beneficiary-detail) the bank and beneficiary

Re: Handling url in class based views.

2021-11-19 Thread Perry Bates
You can use the DetailListView from generic views. Pass in the template name, form class, and query(which in this case takes in the slug to query the db) On Mon, Nov 15, 2021, 21:27 Aadil Rashid wrote: > Hello my dear Friends, I have a question regarding Class Based Views. > > If we have a url