Django Select Filter Widget

2021-05-18 Thread sebasti...@gmail.com
Hi, i need i new widget for Select fields. I have in my models 2 classes: class address(models.Model): lastname = models.CharField(max_length=255, default="", ) firstname = models.CharField(max_length=255, default="", blank=True, null=True) and a second class: class emailaddress

Re: Django select filter

2017-09-12 Thread Bernd Wechner
Here are a pile of options: https://djangopackages.org/grids/g/auto-complete/ and the winner it seems is: https://djangopackages.org/packages/p/django-autocomplete-light/ Cheers, Bernd. -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Django select filter

2017-09-12 Thread sum abiut
I am trying to understand this code. Can someone explain where the current_org came from code taken from stackoverflow {% for org in organisation %} {{org.name|capfirst}} {% endfor %} cheers On Wed,

Re: Django select filter

2017-09-12 Thread ADEWALE ADISA
you can make it interesting by using ajax to post the selected month to your view which u ve already written to accept the month variable. use the variable to filter the necessary queryset in your view, then return the response in json format. you can now collect it from your ajax response, use jav

Re: Django select filter

2017-09-12 Thread Oladipupo Elegbede
I think the filtering should be done in your view. You pass the value of the selected month to the view as a post item. Then do a query based on the view. On Sep 12, 2017 7:43 PM, "sum abiut" wrote: > Hi, > I am working on an app which has a dropdown/select option which contain > months of the

Django select filter

2017-09-12 Thread sum abiut
Hi, I am working on an app which has a dropdown/select option which contain months of the year. What i want to accomplished is when the user click on the drop down and select a particular month of the year the app should display a table filter by that particular selected month. Please point me