Cascading drop down list

2024-05-15 Thread kateregga julius
Hi. I need help on implementing Cascading drop downlist in django using functional based views and manual forms. *​**Kateregga Julius* *Email: julikats2...@gmail.com * *Kampala-Uganda* *Skype: Katslog* -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Drop down dependent of more than 2 drop downs

2021-06-07 Thread Lalit Suthar
Hi how did you implemented the first couple of drop downs and what problem you are facing in the third one exactly On Mon, Jun 7, 2021, 1:02 PM Eugene TUYIZERE wrote: > Hello team, > > Am having trouble implementing drop down dependent on more than 2 drop > downs. I successfully

Drop down dependent of more than 2 drop downs

2021-06-07 Thread Eugene TUYIZERE
Hello team, Am having trouble implementing drop down dependent on more than 2 drop downs. I successfully did for two but the 3rd one which should depend on the second does not work. Is there someone who has successfully implemented this and share with me the way I can do it? Thank you

Re: Show FK as input instead of drop down in admin

2021-01-31 Thread Derek
Wed, Jan 27, 2021 at 05:33:10AM -0800, Kevin Olbrich wrote: > > Is it possible to disable fetching of related models for admin pages? > > I have a field that links to a table containing more than 1M rows which > > django tries to fetch and build the drop down. For my purpose,

Re: Show FK as input instead of drop down in admin

2021-01-30 Thread Ryan Nowakowski
On Wed, Jan 27, 2021 at 05:33:10AM -0800, Kevin Olbrich wrote: > Is it possible to disable fetching of related models for admin pages? > I have a field that links to a table containing more than 1M rows which > django tries to fetch and build the drop down. For my purpose, it is >

Re: Show FK as input instead of drop down in admin

2021-01-27 Thread Mike Dewhirst
: On 28/01/2021 12:33 am, Kevin Olbrich wrote: Hi! Is it possible to disable fetching of related models for admin pages? I have a field that links to a table containing more than 1M rows which django tries to fetch and build the drop down. For my purpose, it is sufficient if it is a simple input

Re: Show FK as input instead of drop down in admin

2021-01-27 Thread Jim Illback
rst wrote: > > On 28/01/2021 12:33 am, Kevin Olbrich wrote: >> Hi! >> >> Is it possible to disable fetching of related models for admin pages? >> I have a field that links to a table containing more than 1M rows which >> django tries to fetch

Re: Show FK as input instead of drop down in admin

2021-01-27 Thread Mike Dewhirst
On 28/01/2021 12:33 am, Kevin Olbrich wrote: Hi! Is it possible to disable fetching of related models for admin pages? I have a field that links to a table containing more than 1M rows which django tries to fetch and build the drop down. For my purpose, it is sufficient if it is a simple

Show FK as input instead of drop down in admin

2021-01-27 Thread Kevin Olbrich
Hi! Is it possible to disable fetching of related models for admin pages? I have a field that links to a table containing more than 1M rows which django tries to fetch and build the drop down. For my purpose, it is sufficient if it is a simple input containing the id instead. How can I

How to pass values of drop down from html template to views in Django?

2020-06-26 Thread ratnadeep ray
I need to send the value of the selected option in a drop down to the views. My html code is as follows: > > Select version to compare with > {%for ver in version_list%} > **{{ver}} option>** > {% endfor %} > The above is giving me the following error: > Page n

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Miracle
Have you tried the same drop down menu code in a plain html file? Without django involved. Just create a html file, put the menu code and boostrap code and test if it works in the first place. This issue might be the dropdown configuration. On Sun, 17 May 2020, 10:49 am Miracle, wrote: >

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Miracle
Hey Sunday, Please check this... https://stackoverflow.com/a/61849839/11000813 On Sun, 17 May 2020, 10:28 am sunday honesty, wrote: > Thanks for replying... > I just downloaded it now following the guide on the doc you sent me. > I have added it to my installed app and requirements.txt. > I

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Kasper Laudrup
Hi Sunday, On 17/05/2020 11.27, sunday honesty wrote: Thanks for replying... I just downloaded it now following the guide on the doc you sent me. I have added it to my installed app and requirements.txt. I loaded it at the top of my template and it didn't work. I then included it in the {%

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread sunday honesty
Thanks for replying... I just downloaded it now following the guide on the doc you sent me. I have added it to my installed app and requirements.txt. I loaded it at the top of my template and it didn't work. I then included it in the {% block content %} as suggested by a member here yesterday, yet

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread Kasper Laudrup
Hi Sunday On 17/05/2020 08.33, sunday honesty wrote: That's what I did... But the question is do I need to download django-bootstrap with pip before I can use compiled bootstrap I have downloaded? Isn't django-bootstrap different from bootstrap? The compiled bootstrap you have downloaded

Re: Bootstrap drop down menu not clickable.

2020-05-17 Thread sunday honesty
That's what I did... But the question is do I need to download django-bootstrap with pip before I can use compiled bootstrap I have downloaded? Isn't django-bootstrap different from bootstrap? On Sun, May 17, 2020, 2:49 AM Clive Bruton wrote: > > On 16 May 2020, at 15:43, sunday honesty wrote:

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Clive Bruton
On 16 May 2020, at 15:43, sunday honesty wrote: I included it to installed app and got an error message on the console. "Module not found, no module named bootstrap 4" "bootstrap4" -- Clive -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Not quite sure on that. Usually what I do is the process that you just mentioned and what we did earlier for all the packages that I use. On Sat, May 16, 2020, 23:10 sunday honesty wrote: > I saw "pip install django-bootstrap4" > > After installing, I should load bootstrap > Then I could add

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I saw "pip install django-bootstrap4" After installing, I should load bootstrap Then I could add bootstrap form. Other tutorials I have seen don't require downloading bootstrap since I have doneloaded the compiled bootstrap and added it to the static folder of my Django project. If really I must

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
All right On Sat, May 16, 2020, 3:49 PM Simon A wrote: > Try to run the pip install command if you havent already. Check the > correct command to install bootstrap3 or 4 if forgot the complete package > name. > > On Sat, May 16, 2020, 22:45 sunday honesty > wrote: > >> I included it to

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to run the pip install command if you havent already. Check the correct command to install bootstrap3 or 4 if forgot the complete package name. On Sat, May 16, 2020, 22:45 sunday honesty wrote: > I included it to installed app and got an error message on the console. > "Module not found, no

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I included it to installed app and got an error message on the console. "Module not found, no module named bootstrap 4" On Sat, May 16, 2020, 3:31 PM Clive Bruton wrote: > > On 16 May 2020, at 15:03, sunday honesty wrote: > > > I did that and got a TemplateSyntaxError stating that bootstrap4 is

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Clive Bruton
On 16 May 2020, at 15:03, sunday honesty wrote: I did that and got a TemplateSyntaxError stating that bootstrap4 is not a registered tag library Did you put it in your installed_apps? -- Clive -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Is it in you installed apps? On Sat, May 16, 2020, 22:04 sunday honesty wrote: > I did that and got a TemplateSyntaxError stating that bootstrap4 is not a > registered tag library > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users"

Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I did that and got a TemplateSyntaxError stating that bootstrap4 is not a registered tag library -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to include the dependencies inside the block content. Here is what I did {% block content %} {% load bootstrap3 %} {% bootstrap_css %} {% bootstrap_javascript %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Bootstrap drop down not dropping

2020-05-15 Thread sunday honesty
-bootstrap-drop-down-items-are-not-clickable-showing Pls help out and not too experienced. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Bootstrap drop down menu not clickable.

2020-05-15 Thread sunday honesty
at the body before closing body. When I try adding nav bar and drop-down menu, every other things worked except for the dropdown. If I click on the item that should reveal the dropdown items, it's simply not showing anything but append # to my home url at the tab. That is, before, my home page

Re: Drop down dependent on two other form fields

2020-05-06 Thread Sherif Adigun
Check this https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Drop down dependent on two other form fields

2020-05-06 Thread shefali chudasama
Did you gor the solution.. i want to do the same.. from database On Tuesday, January 5, 2016 at 1:07:54 AM UTC-5, Arindam sarkar wrote: > > Hello, > In my project I have a from in which there is three drop down. The 3rd > drop down is depended on the selected values of the above tw

django dependent drop down list without using javascript; ajax; jquery

2020-04-12 Thread Mayank Tripathi
Hi All, Could any one please share some details on how we can do dependent drop down list selection. I am seeing lot of videos or content to handle this via JavaScript; AJAX; jquery etc.. but just wondering if Django has anything which can be handled easily. -- You received this message

How to fill the form field with the data based on drop down selection of another form field using ajax request

2020-02-08 Thread Dilipkumar Noone
Dear group, I am Django learner. I have two models. 1. ModelRegister 2. ModelGSP ModelRegister returns model_name. ModelGSP has a foreignkey to ModelRegister. When we select a particular model from a ModelGSP model,i want to fill a field in ModelGSP with the data for a selected model when

Display Multiselect bootstrap drop-down value in div with checkbox options

2019-12-27 Thread Santhosh sridhar
Hi, I have a multiselect bootstrap drowdown. I want to display the selected values from a drop-down in a separate div as rows with multiple checkboxes to select. How I can proceed for this? Like I have selected 3 items(I1,I2,I3) from dropdown then i should display all the three items as rows

Adding drop down selection to my form and filter

2019-12-04 Thread Patrick Carra
Hello I am working on adding a drop down selection to my filters so far I am not having any luck. I recently changed my views.py to use a class instead of a def for this. Now when I use filter.form it shows every field in my models. It should only show the following fields circuitid

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Mugabi Timothy
you can use the above list dropdown but use the templating engine in django On Mon, Sep 9, 2019 at 12:00 PM Mugabi Timothy wrote: > >> https://example.com; id="dropdown01" data-toggle="dropdown" >> aria-haspopup="true" aria-expanded="false">welcome >>

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Tosin Ayoola
I feel bootstrap can handle that On Sep 9, 2019 09:28, "Sandip Nath" wrote: > Am new to Django. Am trying to build a car rental web site. After logging > in the home page navbar at the top is showing the "hello " as > expected. But I want a drop-down menu fr

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Gil Obradors
howing the "hello " as > expected. But I want a drop-down menu from that welcome message which will > contain the user edit profile option, his/her bookings and a logout > options. I have created edit profile and logout features but they are > separately shown. How can I br

How to create a a drop-down menu from the logged in username

2019-09-09 Thread Sandip Nath
Am new to Django. Am trying to build a car rental web site. After logging in the home page navbar at the top is showing the "hello " as expected. But I want a drop-down menu from that welcome message which will contain the user edit profile option, his/her bookings and a logout optio

Re: Get Value of Drop Down

2019-06-26 Thread Sipum Mishra
Hello csn u plz share ur codes as well as errors. On Thu, 27 Jun, 2019, 12:09 AM Aayush Bhattarai, < bhattaraiaayus...@gmail.com> wrote: > Hi, > I have encountered a problem. How can I get the value of dropdown, > Boolean Field and send it to the database. Note: I am not using forms.py > files

Get Value of Drop Down

2019-06-26 Thread Aayush Bhattarai
Hi, I have encountered a problem. How can I get the value of dropdown, Boolean Field and send it to the database. Note: I am not using forms.py files and using a function-based view. I have created own form in HTML. I am not able to match the value of database and value in html dropdown. --

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-22 Thread Chetan Ganji
Hello Balaji Sir, AFAIK, Django does not filter the foreign key fields by default, Cascading Drop Down is not available by default in django. If the filtering was to be done on the initial value only, you could have overwritten the __init__() in the form to filter the fk values. But that does

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-22 Thread Nitin Kumar
ms alright. It seems you haven't created any continents >> yet. The table is empty. >> >> On Wed, 22 May, 2019, 10:52 AM Balaji Shetty > wrote: >> >>> Hi >>> >>> I am learning Django from last months and want to implement Cascading >>> D

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Balaji Shetty
wrote: > Everything seems alright. It seems you haven't created any continents yet. > The table is empty. > > On Wed, 22 May, 2019, 10:52 AM Balaji Shetty wrote: > >> Hi >> >> I am learning Django from last months and want to implement Cascading >> Drop Down f

Re: Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Nitin Kumar
Everything seems alright. It seems you haven't created any continents yet. The table is empty. On Wed, 22 May, 2019, 10:52 AM Balaji Shetty Hi > > I am learning Django from last months and want to implement Cascading Drop > Down for Continent and Country in Admin GUI. > > I dro

Need help for Cascading Drop Down for Continent, Country in Admin GUI - Not Getting correct Answer from Many Days

2019-05-21 Thread Balaji Shetty
Hi I am learning Django from last months and want to implement Cascading Drop Down for Continent and Country in Admin GUI. I dropped same query two times but i could not get exact correct solution. I tried lot of option like django-smart-select and many more.. But i could not get updates

Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-17 Thread Balaji Shetty
*Hi* *I tried it https://django-autocomplete-light.readthedocs.io/en/master/ <https://django-autocomplete-light.readthedocs.io/en/master/> * * but could not understand how to use it. I am new in Django. I could add Cascading drop down as well as retrieve.* *But how to use it in m

Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread Balaji Shetty
provide me the resource for implementation of Cascading >> Dependent Drop Down List in Django Admin GUI. >> >> I do now want to write any code and use existing Admin GUI only. I tried >> many select2 but could not get any success. >> >> Here is my sample code &

Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread carlos
try this app https://django-autocomplete-light.readthedocs.io/en/master/ On Thu, May 16, 2019 at 5:59 AM Balaji Shetty wrote: > > Hi > > Can anyone please provide me the resource for implementation of Cascading > Dependent Drop Down List in Django Admin GUI. > > I do now w

How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread Balaji Shetty
Hi Can anyone please provide me the resource for implementation of Cascading Dependent Drop Down List in Django Admin GUI. I do now want to write any code and use existing Admin GUI only. I tried many select2 but could not get any success. Here is my sample code *I followed

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread chaitanya goud
ji Shetty a > écrit : > >> >> HI >> >> *How can I add cascading drop down for Continent and Country in Django >> Admin Panel.* >> >> Here I add Continent and Country. >> >> When i change Continent, Country should be changed automatically. &g

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Maurice Aney
hi guys i think that it will be great to create a slak chanel Le jeu. 9 mai 2019 à 08:03, Balaji Shetty a écrit : > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i chang

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
Thanks a lot for your reply Dear Jani Tiainen I try it. On Thursday, May 9, 2019, Jani Tiainen wrote: > You could try django-select2 for example. > > to 9. toukok. 2019 klo 11.03 Balaji Shetty > kirjoitti: > >> >> HI >> >> *How can I add cascad

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Jani Tiainen
You could try django-select2 for example. to 9. toukok. 2019 klo 11.03 Balaji Shetty kirjoitti: > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i change Continent

Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
HI *How can I add cascading drop down for Continent and Country in Django Admin Panel.* Here I add Continent and Country. When i change Continent, Country should be changed automatically. How can i achieve this. Consider my model.py class Continent(models.Model): name

How to create dependent drop down list

2019-05-02 Thread pramodkumar575
[image: fb.jpg] #My form script is from django import forms from django.db import models import os,string # My production Drive class my_drive_module(forms.Form): drives_a = [chr(x) + ':' for x in range(65, 90) if os.path.exists(chr(x) + ':')] #floder list_with_tuples = [(x, x)

Re: drop down multi checkbox with bootstraps selet

2018-12-10 Thread manikanta katikam
can u plese send this code On Saturday, March 18, 2017 at 10:28:07 PM UTC+5:30, ايهاب توفيق wrote: > > I am tring to create drop down checkbox with values from database in my > templet using bootstrap select and form MultipleChoiceField like this > > > > Html > >

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-15 Thread mab . mobile . 01
vents'" I'm sure that's not the only issue and I'm doing something else wrong. Just to make sure I'm clear on what I need this to do, I would like the drop down list to appear as below when adding a new employee shift/schedule date or editing an existing one... What should be submitted to th

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-15 Thread mab . mobile . 01
Thank you Nelson. I will try this option. On Friday, October 12, 2018 at 9:57:31 AM UTC-5, Nelson Varela wrote: > > You could make a custom form for your admin which is a model form which >> points to EmployeeSchedule. And in the form its init you can change the >> queryset of the events

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-12 Thread Nelson Varela
> > You could make a custom form for your admin which is a model form which > points to EmployeeSchedule. And in the form its init you can change the > queryset of the events field: > self.fields['events'].queryset = WineryEvents.objects.filter(publish='Y').

Re: Django Admin Filtering Drop Down Menu by Date

2018-10-12 Thread Derek
Your question does not make sense (as written): "To add a new event I would like to pick from a drop down list of only the events that are in the future" .. Why should adding a new event depend on you selecting another event? Are the events related or dependant in some way; that is

Django Admin Filtering Drop Down Menu by Date

2018-10-09 Thread mab . mobile . 01
Hello, I am trying to develop an employee schedule based on upcoming events and I only need to make additions or updates in Django Admin. To add a new event I would like to pick from a drop down list of only the events that are in the future or on todays date not the entire table list

add prompts for drop down list

2017-10-16 Thread Rebecca
The form field are something like this: colours = (('r','Red'),('g','Green'),('b','Blue)) # ... fave_colour = forms.ChoiceField(choices=colours) I would like to add a prompt for each choice to help user select the choice properly. How can I add prompts for the choices drop down

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
class EvalState(models.Model,AtlasBaseHelper): """ Represents Eval State: ACTIVE INACTIVE DELETE NA """ name = models.CharField(max_length=32, unique=True) friendly_name = models.CharField(max_length=32, unique=True) description =

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread lemme smash
you didn't show me a model structure, you just showed another model, so I can't give you example without picture of what's going on there On Monday, August 7, 2017 at 1:39:49 PM UTC+3, Arun S wrote: > > Can you just give an Example for this taking a Query. > > > > On Monday, August 7, 2017 at

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread Arun S
Can you just give an Example for this taking a Query. On Monday, August 7, 2017 at 3:37:04 PM UTC+5:30, lemme smash wrote: > > i meant EvalState model > if name attribute on it is a ForeignKey you should get corresponding > queryset of model it links to > if it's charfield, you should use text

Re: Drop Down Menu in Django Forms not working.

2017-08-07 Thread lemme smash
i meant EvalState model if name attribute on it is a ForeignKey you should get corresponding queryset of model it links to if it's charfield, you should use text choices On Monday, August 7, 2017 at 6:22:50 AM UTC+3, Arun S wrote: > > The Models Look like this : > > stage_state =

Re: Drop Down Menu in Django Forms not working.

2017-08-06 Thread Arun S
The Models Look like this : stage_state = models.ForeignKey(EvalState, verbose_name="Eval State") class Bundle(AtlasAuditModel, AtlasBaseHelper):^M """^M Represents the bundle purchased by the customer. The bundle^M contains a reference identifier which remains the same if the^M

Re: Drop Down Menu in Django Forms not working.

2017-08-06 Thread lemme smash
so, you can maybe show you models structure here? also, if it is a ForeignKey, why you trying to filter qs by string values? I mean Q(name = 'ACTIVE') it's shouldn't work On Sunday, August 6, 2017 at 5:22:21 AM UTC+3, Arun S wrote: > > Yes, name is a foreign key here. -- You received this

Re: Drop Down Menu in Django Forms not working.

2017-08-05 Thread Arun S
Yes, name is a foreign key here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Drop Down Menu in Django Forms not working.

2017-08-05 Thread lemme smash
: > > Hi, > > I am trying to have a drop down menu for a field in my form but seems like > its not working as required. > > This is my form: forms.py > > eval_states = [ > ('ACTIVE',EvalState.objects.filter(name='ACTIVE')), > ('INACTIVE',EvalSt

Drop Down Menu in Django Forms not working.

2017-08-04 Thread Arun S
Hi, I am trying to have a drop down menu for a field in my form but seems like its not working as required. This is my form: forms.py eval_states = [ ('ACTIVE',EvalState.objects.filter(name='ACTIVE')), ('INACTIVE',EvalState.objects.filter(name='INACTIVE')), ('DELETE

Re: template drop down menu

2017-06-06 Thread sum abiut
Thanks heaps for your response. I will have a look into it. Cheers, On Wed, Jun 7, 2017 at 9:22 AM, Bernd Wechner <bernd.wech...@gmail.com> wrote: > If you want a sample for a javascript postback when drop down changes I > have one here: > > https://github.com/bernd-wechne

Re: template drop down menu

2017-06-06 Thread Bernd Wechner
If you want a sample for a javascript postback when drop down changes I have one here: https://github.com/bernd-wechner/CoGs/blob/master/Leaderboards/templates/CoGs/view_leaderboards.html It's attached to the select "selNames" which you can trace to the Django view "aj

Re: template drop down menu

2017-06-06 Thread sum abiut
e data > according to the value of the select. With no request to your server, > data will be updated really fast. That solution work really well for > small to medium amount of data. > > 2017-06-06 7:40 GMT+02:00 sum abiut <suab...@gmail.com>: > > Hi, > > need some

Re: template drop down menu

2017-06-06 Thread ludovic coues
d to query the my database and display the result > of the query in the table. to do that i want to use a drop down menu and get > the users to select options from the drop menu on the template. > > for example if a user select a word from the drop down menu i want to filter > and query the datab

template drop down menu

2017-06-05 Thread sum abiut
Hi, need some directions, i need to query the my database and display the result of the query in the table. to do that i want to use a drop down menu and get the users to select options from the drop menu on the template. for example if a user select a word from the drop down menu i want

Re: drop down multi checkbox with bootstraps selet

2017-03-20 Thread ايهاب توفيق
thank you for your help بتاريخ السبت، 18 مارس، 2017 6:58:07 م UTC+2، كتب ايهاب توفيق: > > I am tring to create drop down checkbox with values from database in my > templet using bootstrap select and form MultipleChoiceField like this > > > > Html > > select cl

drop down multi checkbox with bootstraps selet

2017-03-18 Thread Camilo Torres
Hi, You have to properly construct the element. Take a look at these sections of the manual: https://docs.djangoproject.com/en/1.10/topics/forms/#rendering-fields-manually https://docs.djangoproject.com/en/1.10/topics/forms/#looping-over-the-form-s-fields Take a special look at field

drop down multi checkbox with bootstraps selet

2017-03-18 Thread ايهاب توفيق
I am tring to create drop down checkbox with values from database in my templet using bootstrap select and form MultipleChoiceField like this Html select class="selectpicker" multiple> {% for topping in form.the_topping %} {{ topping.topping_id }}

Django Tutorials for Drop Down

2017-02-02 Thread Michelle
Hello! Does anyone know of any Django tutorials for creating a drop down? The one's I found thus far are subpar. Many thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: limiting the drop down option of a one-to-one relationship in the admin app. is that possible ?

2017-01-29 Thread Melvyn Sopacua
On Saturday 28 January 2017 21:48:03 Mike08 wrote: > Ok that makes sense. > > Now I have something like this > > class modelStudentAdmin(admin.ModelAdmin): > form = modelStudentAdminForm > > #Only display students that belong to this user > def get_queryset(self, request): >

Re: limiting the drop down option of a one-to-one relationship in the admin app. is that possible ?

2017-01-28 Thread Mike08
else: > # Get the school instance > schoolInstance = modelSchool.objects.get(user=request.user) > qs = modelStudent.objects.filter(school=schoolInstance) > return qs > > admin.site.register(modelStudent,modelStudentAdmin) > > now my qu

Re: limiting the drop down option of a one-to-one relationship in the admin app. is that possible ?

2017-01-28 Thread Mike08
I am not sure if i understand this are you suggesting that i return a form instead of a queryset ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: limiting the drop down option of a one-to-one relationship in the admin app. is that possible ?

2017-01-28 Thread Melvyn Sopacua
On Saturday 28 January 2017 18:21:34 Mike08 wrote: > now my question is in the admin when the user attempts to create a new > modelStudent for the field "user" all available users are shown in > the drop down. My question is if there is a way for me to > limit/restrict that

limiting the drop down option of a one-to-one relationship in the admin app. is that possible ?

2017-01-28 Thread Mike08
to create a new modelStudent for the field "user" all available users are shown in the drop down. My question is if there is a way for me to limit/restrict that drop down to a certain value or (set that drop down value to something and then have the drop down disabled) ? I only want peopl

Re: I am searching: How to make drop down list in django

2016-09-01 Thread Gergely Polonkai
This very much depends on what exactly want to do, but in general, it doesn’t really Django’s job. Can you produce the desired result in a plain HTML file? If not, you should visit an HTML/CSS tutorial; if yes, you should define your problem a bit better, otherwise we won’t be able to help you.

Re: I am searching: How to make drop down list in django

2016-09-01 Thread ludovic coues
Do you mind to share a bit more of what you are trying to do ? There is a few way to get a dropdown list out of a django form class. https://docs.djangoproject.com/en/1.10/ref/models/fields/#django.db.models.Field.choices is one way to do it, for a specific use case. 2016-09-01 9:26 GMT+02:00

I am searching: How to make drop down list in django

2016-09-01 Thread amandeep . tu2015
I trying for last 7 days to search this topic but could not find :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Re: multi-select the items from drop down list and save them in database.

2016-05-10 Thread Ricardo Daniel Quiroga
Hi, I can think of many ideas,but you could try https://pypi.python.org/pypi/django-select-multiple-field/0.3.1 2016-05-10 3:06 GMT-03:00 Nikita Jadhav <nikijadhav0...@gmail.com>: > hii everyone, > I want to multi-select the items from drop down list and save them in > datab

multi-select the items from drop down list and save them in database.

2016-05-10 Thread Nikita Jadhav
hii everyone, I want to multi-select the items from drop down list and save them in database. how it can be achieved?. by using simple code in django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: django: drop down menu not displaying on template despite correct syntax

2016-02-17 Thread jorrit787
, clarkso...@gmail.com wrote: > > I have successfully configured a way to upload files to a website that I > am making. However we would like to include a drop-down menu on the site. > However, we want to include in the form of a drop-down menu called > "mismatch choice":

creating temporary storage file in django-media from drop down input

2016-02-17 Thread clarksonchris81
I have managed to configure a system, using django, that allows me to upload a file to my media-folder. I have (using simple-html) included a drop-down menu that will specify parameters that will be considered when processing the uploaded file in a pipeline. {% csrf_token

django: drop down menu not displaying on template despite correct syntax

2016-02-16 Thread clarksonchris81
I have successfully configured a way to upload files to a website that I am making. However we would like to include a drop-down menu on the site. However, we want to include in the form of a drop-down menu called "mismatch choice": models.py: for drop-down menu

Re: Drop down dependent on two other form fields

2016-01-05 Thread Billu
Think you have to use jQuery (or any other JS framework) on this one to send the values back to server. An example would be http://jsfiddle.net/dKMzk . But with this, you have to pull all values prior to loading the drop-downs. With this example, you

Re: Drop down dependent on two other form fields

2016-01-04 Thread Andreas Kuhne
I have a from in which there is three drop down. The 3rd > drop down is depended on the selected values of the above two drop downs . > How can I go for the implementation of it . Please show me a way. > > -- > Regards, > > Arindam > > Contact no. 08732822385 > > >

Drop down dependent on two other form fields

2016-01-04 Thread Arindam sarkar
Hello, In my project I have a from in which there is three drop down. The 3rd drop down is depended on the selected values of the above two drop downs . How can I go for the implementation of it . Please show me a way. -- Regards, Arindam Contact no. 08732822385 -- You received this message

A view drop down having values filtered from models

2015-08-28 Thread Thiliban V
Hie, I'm trying to do this. A view with Three drop down lists like - - <Child's Child> The values in the list should be from model values. Or a separate things. I just want to capture the results and store the results in a db. so far I've messed up with this example http://www.w3.

Poll app: Drop-down list is empty i.e not showing value even though I inserted values in Poll table

2013-11-03 Thread NHT
Hi, In poll app website, Select poll to change page my drop-down list is empty.While in Mysql command prompt when I do select * command it shows the tuples. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Filtering a drop-down list in Admin

2013-08-11 Thread Mike Dewhirst
at once. Then I have a separate admin page for the contact. What I want to do is filter the drop-down list for the contact so that once a company is selected only the locations related to that company are displayed. I found this on filtering drop downs in admin http://www.stereoplex.com/blog/filtering

Filtering a drop-down list in Admin

2013-08-11 Thread Chad
admin page for the contact. What I want to do is filter the drop-down list for the contact so that once a company is selected only the locations related to that company are displayed. I found this on filtering drop downs in admin http://www.stereoplex.com/blog/filtering-dropdown-lists

  1   2   3   >