title: How to refresh values in Django-form dropdown list?
body: <p>In my django project I have a form with dropdown list of options from database. When server starts up all options are there, but if there is an option added while it runs, the new option won't show up in dropdown list. </p>
  
  <p>forms.py</p>
  
  <pre><code>class filter(forms.Form): 
      filterOption=forms.CharField(widget=forms.Select(choices=getOptions())
  
  </code></pre>
  
  <p>functions.getOptions() returns a list of options from mySQL (database is not the problem here). 
  It is then rendered in views.py and put into html form. </p>
  
  <pre><code>from .forms import filter
  
  def index(request):
      filter = filter()
      return render(request, 'homePage/home.html',{'filter':filter})
  </code></pre>
  
  <p>I understand that the form object is created when the server starts, but if a new option is added and getOptions() should return one more option, how can I re-initialise that form object without restarting the server. Sometimes it is added after ~10min, but I need it instantly.</p>