title: How can I choose which choice to show up in django form field?
body: <p>I am trying to dynamically change the viewable choices in a django form choice field depending on the user. Here is my form:</p>
  <pre><code>SubmitForm(forms.ModelForm):
      class Meta:
          model = Lesson
          fields = (
              &quot;status&quot;,
          )
  </code></pre>
  <p>Here is my models.py for <code>Lesson</code>:</p>
  <pre><code>CLASS_STATUS = (
          ('Attended', 'Attended'),
          ('Absent', 'Absent'),
          ('Teacher Postponed', 'Teacher Postponed'),
          ('Student Postponed', 'Student Postponed'),
      )
  
      status = models.CharField(
          max_length=30,
          choices=CLASS_STATUS,
          null=True,
          blank=True,
      )
  </code></pre>
  <p>So, basically I want to be able to select which choices to show for each type of user. In order to do this, I hope you guys could also show how I could access the <code>request.user</code> information in my form. Thank you, and please ask me any questions you have.</p>
  <p>Here is a part of the view as some of you requested:</p>
  <pre><code>class SubmitView(generic.UpdateView):
      template_name = &quot;agents/submit_form.html&quot;
      queryset = Lesson.objects.all()
      context_object_name = &quot;lesson&quot;
      form_class = SubmitForm
  </code></pre>