Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
ailesh Yadav > +91-9920886044 > > [image: Linkedin] <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> > > > > On Wed, Jun 23, 2021 at 9:50 PM Shailesh Yadav < > shaileshyadav7...@gmail.com> wrote: > >> Okay. >> If you using the Dja

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Like this? class Product(ListView): model = Items.objects.all() paginate_by = 6 template_name = 'products.html' result_filter = ProductFilter(request.GET, queryset=model) On Wed, 23 Jun 2021 at 21:51, Shailesh Yadav wrote: > Okay. > If you using the Django fil

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
in Html code {{items_filter.form}} Search Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> On Wed, Jun 23, 2021 at 9:50 PM Shailesh Yadav wrote: > Okay. > If you using the Django filter then, pleas

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
Okay. If you using the Django filter then, please try like below in your views.. abc_list = ModelName.objects.all() result_filter = ModelNameFilter(request.GET, queryset=abc_list) Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] <https://in.linkedin.com/in/shailes

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
hanks & Regards >>> Shailesh Yadav >>> +91-9920886044 >>> >>> [image: Linkedin] >>> <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> >>> >>> >>> >>> On Wed, Jun 23, 2021 at 2:25 PM Aritra Ray wrote: >>> >

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Linkedin] >>> <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> >>> >>> >>> >>> On Wed, Jun 23, 2021 at 2:25 PM Aritra Ray wrote: >>> >>>> Hi, >>>> I've been trying to introduce a filter system in my

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
6044 >> >> [image: Linkedin] <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> >> >> >> >> >> On Wed, Jun 23, 2021 at 2:25 PM Aritra Ray wrote: >> >>> Hi, >>> I've been trying to introduce a filter system in my D

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
-9920886044 > > [image: Linkedin] <https://in.linkedin.com/in/shailesh-yadav-b7ab89110> > > > > On Wed, Jun 23, 2021 at 2:25 PM Aritra Ray wrote: > >> Hi, >> I've been trying to introduce a filter system in my Django-ecommerce >> website and I&#x

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
r system in my Django-ecommerce > website and I've been struggling despite reading the documents, etc. I am > using 'django-filter' and below are filters.py, models.py, views.py and the > template. To check out the project, follow the github link: > https://github.com/First-proj

Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Hi, I've been trying to introduce a filter system in my Django-ecommerce website and I've been struggling despite reading the documents, etc. I am using 'django-filter' and below are filters.py, models.py, views.py and the template. To check out the project, follow th

django-filter according to logged user

2020-11-01 Thread Gabriel
Hi, I am using the django_filters to filtering the information. However, it is showing the data of all logged user of my systems. I need show *only* the data of logged user. Follow the files: *filters.py * import django_filters from apps.requisitos.models import Requisito class RequisitoFil

Re: Django-filter customization for rest api

2019-09-05 Thread Nishant Bhanushali
I have an doubt.. There are many field types and many other field option. How can we make it On Thu, Sep 5, 2019, 18:56 Abhineet Baranwal wrote: > When we pass fields in Meta class for custom filter then django-filter > adds 'and' in-between the fields .how to add 'or'

Django-filter customization for rest api

2019-09-05 Thread Abhineet Baranwal
When we pass fields in Meta class for custom filter then django-filter adds 'and' in-between the fields .how to add 'or' operator in between the fields.please explain with an example for rest api. -- You received this message because you are subscribed to the Google Groups

Need Help about django-filter and dataGrid

2018-11-23 Thread DELEAU Eric
G] *Questions :* - With the package django-filter, all data are sent to the html page. If you have a lot of data on my model, it should be a problem ? Which other solution could i use ? - With django-filter, could you manage the pagination and how ? - do you have any advice to add the a

Re: django-filter over models

2018-09-19 Thread brajesh kumar
7;, views.JobsWithPersonsView.as_view(), name='jobslist') > ] > > > *BTW: *Your model names should be in singular form, if you want to be > able to use plural forms in some cases, use verbose_name_plural (docs > <https://docs.djangoproject.com/en/2.1/ref/models/opti

Re: django-filter over models

2018-09-18 Thread Mateusz
Sorry, my previous answer was senseless, I realized that just after adding it. 1) You can filter jobs in appname/views.py: queryset = Job.objects.filter(name__contains="job") 2) and people in template /appname/templates/jobs_list.html: {% for job in object_list %} {{ job.name }} {% fo

Re: django-filter over models

2018-09-18 Thread Mateusz
s://docs.djangoproject.com/en/2.1/ref/models/options/#verbose-name-plural> ). W dniu czwartek, 13 września 2018 05:26:20 UTC+2 użytkownik René L. Hechavarría napisał: > > Hello, > > I have a model, Jobs and Persons, Jobs are listed in ListView, i need to > add a filter (dja

django-filter over models

2018-09-12 Thread René L . Hechavarría
Hello, I have a model, Jobs and Persons, Jobs are listed in ListView, i need to add a filter (django-filter), if i filter over field in Jobs all work good, but i need to filter also for Persons. this is and example @property def get_persons(self): return self.persons_all.all() That allow

Re: django filter

2017-08-29 Thread Muhammad M
Please, post your related code (from your models, views and template) here so that we can take a look. Thank you. > On Aug 29, 2017, at 1:59 AM, sum abiut > wrote: > > I did that but the approved leave is still showing on the table. > > Cheers > > On Tue, Aug 29, 2

Re: django filter

2017-08-28 Thread sum abiut
I did that but the approved leave is still showing on the table. Cheers On Tue, Aug 29, 2017 at 2:44 PM, sum abiut wrote: > Thanks heaps Muhammad. > Sum > > On Tue, Aug 29, 2017 at 10:13 AM, Muhammad M wrote: > >> Hi Sum, >> >> Add an "approved" field of type BooleanField ( ) to your Leave mod

Re: django filter

2017-08-28 Thread sum abiut
Thanks heaps Muhammad. Sum On Tue, Aug 29, 2017 at 10:13 AM, Muhammad M wrote: > Hi Sum, > > Add an "approved" field of type BooleanField ( ) to your Leave model. > > So, something like this should work: > > In app/models.py: > > class Leave (models.Model): > #other fields go here... > a

Re: django filter

2017-08-28 Thread Muhammad M
Hi Sum, Add an "approved" field of type BooleanField ( ) to your Leave model. So, something like this should work: In app/models.py: class Leave (models.Model): #other fields go here... approved = models.BooleanField ( ) In app/views.py, handle the query like this: unapproved_leav

django filter

2017-08-28 Thread sum abiut
Hi all, i am working on an eleave system where staff apply for annual leave and their leave manager approved the leave online. currently i have a table that shows all the leave for each department. what i want to accomplished is to only show the leave that are not yet approved on the table. Any le

Re: Django Filter

2016-06-17 Thread 'David Turner' via Django users
The issue is that one of the fields use choices. If I remove this everything is fine! On 17 June 2016 at 16:58, 'David Turner' via Django users < django-users@googlegroups.com> wrote: > I am using django-filter > > I have create the the filter as follows: > filter

Django Filter

2016-06-17 Thread 'David Turner' via Django users
I am using django-filter I have create the the filter as follows: filters.py import django_filters from .models import Job class JobFilter(django_filters.FilterSet): class Meta: model = Job fields = ['practice_type'] And I have created the following view: fr

Re: Combining django-tables2 with django-filter info ListView?

2014-01-20 Thread Sapana Kaswa-Surpuriya
t(self): > return Website.objects.all() > > The mixin adds the table object to the context and adds an order_by clause > to the queryset. > > Now i don't know how to add a second mixin for django-filter; i have a > mixin available but since it also fetches the quer

Django-filter Tastypie all fields

2013-06-18 Thread Hélio Miranda
Hi! I'm doing a project with django-tastypie and know how to set a field to filter by, thus: filtering = { 'nationality': ALL, } What I want to know is if there was some setting that would allow me to have all the fields available for filtering, without having to be set one by one as in

how can i remove djangos Django filter lookup function" __search" defalt sql attribute "IN BOOLEAN MODE "

2013-05-04 Thread rohit verma
i am using search method in django to fetch data hname_result = models.Hotel.objects.filter(name__search=hname) its sql equivalen is select name from table where MATCH(name)AGAINST ('value' IN BOOLEAN MODE ) but i want select name from table where MATCH(name)AGAINST ('value' ) -

Combining django-tables2 with django-filter info ListView?

2012-08-09 Thread Paul
mixin for django-filter; i have a mixin available but since it also fetches the queryset from get_queryset i'm expecting that either the ordering or the filtering won't work!? Anyone with mixin experience willing to give some directions? Paul -- You received this message because you

Django filter and Q

2011-07-30 Thread Sumlaj
Hi, i read from django docs that we can replace multiple filters with Q. But and i used both queries but unfortunately they give me different results. Can someone explain me this? I will post the queries and corresponding sql here. I am filtering for a many-to-many field. >>> Web.objects.filter(co

django-filter as part of Django Admin?

2010-10-22 Thread Derek
For anyone who is using django-filter - http://github.com/alex/django-filter/ - do you know if it is possible to either: (a) use it directly as part of Django Admin, or (b) replicate its functionality Django Admin (and, if so, how?? because the existing "sidebar" filters are n

Re: Using 'django-filter' on a field with choices

2009-09-22 Thread Godshall
27;, 'status'] That should give you what you're looking for. I'm using a LinkWidget for mine, and it automatically displays an "All" option for the blank value. On Sep 21, 1:59 pm, Almost George wrote: > On Sep 21, 8:54 am, Almost George > wrote: > > > > >

Re: Using 'django-filter' on a field with choices

2009-09-21 Thread Almost George
On Sep 21, 8:54 am, Almost George wrote: > I'm using the very cool django-filter > (via:http://github.com/alex/django-filter) > and either can't seem to wrap my head around the docs, or maybe just > need a little boost. > > When I show the filter form on an object

Using 'django-filter' on a field with choices

2009-09-21 Thread Almost George
I'm using the very cool django-filter (via: http://github.com/alex/django-filter) and either can't seem to wrap my head around the docs, or maybe just need a little boost. When I show the filter form on an object list page, for a FK field I get the dropdown that includes a "-

Django Filter parser slightly less than intuitive

2009-08-12 Thread Mark Jones
{{ datevar|date: dateformat}} won't parse. You get the error: Could not parse the remainder: ': dateformat' from 'datevar|date: dateformat' Turns out that unlike most other places, spaces ARE significant here. It could be fixed by changing the filter_raw_string on line 448 of django/template/__

Re: Django filter hack

2006-05-04 Thread Alexandru Badiu
Hi, Sorry for the late reply. You probably now it by now, but the effect is fading in / out and sliding.AnduOn 3/13/06, Adrian Holovaty < [EMAIL PROTECTED]> wrote:On 3/8/06, Andu < [EMAIL PROTECTED]> wrote:> One of the problems I faced when using Django's admin was the filter> part overlapped the t

Re: Django filter hack

2006-03-12 Thread Adrian Holovaty
On 3/8/06, Andu <[EMAIL PROTECTED]> wrote: > One of the problems I faced when using Django's admin was the filter > part overlapped the table with data, when I showed lots of fields in > the admin listing. > > I did a quick hack today and made it toggable. If you want to aply a > filter, show it.

Re: Django filter hack

2006-03-08 Thread tonemcd
This is very nice - very helpful! Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group

Re: Django filter hack

2006-03-08 Thread oggie rob
> I did a quick hack today and made it toggable. If you want to aply a filter, show it. If not, leave it there and browse the listings. This is nice - can you write up a bug? -rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Django filter hack

2006-03-08 Thread limodou
On 3/8/06, Andu <[EMAIL PROTECTED]> wrote: > > Hi all, > > One of the problems I faced when using Django's admin was the filter > part overlapped the table with data, when I showed lots of fields in > the admin listing. > > I did a quick hack today and made it toggable. If you want to aply a > fil

Django filter hack

2006-03-08 Thread Andu
Hi all, One of the problems I faced when using Django's admin was the filter part overlapped the table with data, when I showed lots of fields in the admin listing. I did a quick hack today and made it toggable. If you want to aply a filter, show it. If not, leave it there and browse the listing