title: How to apply condition in django admin form?
body: <p>I have models like this in Django:</p>
  
  <pre><code>from django.db import models
  
  
  class Navigation(models.Model):
      name = models.CharField(max_length=200)
  
      def __unicode__(self):
          return self.name
  
  
  class Question(models.Model):
      question = models.TextField()
      publication_date = models.DateField()
      is_active = models.BooleanField(default=1)
      is_premium = models.BooleanField(default=0)
  
      def __unicode__(self):
          return self.question
  
  
  class QuestionType(models.Model):
      question = models.OneToOneField(Question)
      question_types = (
                        (1, 'Multiple Choice'),
                        (2, 'Text Answer')
                        )
      type = models.IntegerField(choices=question_types, verbose_name="Select Question Type")
  
  
  class Category(models.Model):
      question = models.OneToOneField(Question)
      navigation = models.OneToOneField(Navigation)
      choices_options = (
          (1, 'Begineer'),
          (2, 'Intermediate'),
          (3, 'Expert')
      )
  
      choices = models.IntegerField(choices=choices_options, verbose_name="Select level")
  
  
  class Choice(models.Model):
      question = models.ForeignKey(Question)
      choice_text = models.CharField(max_length=200)
  
  
      def __unicode__(self):
          return self.choice_text
  
  class Answer(models.Model):
      question = models.OneToOneField(Question)
      choice = models.OneToOneField(Choice)
  </code></pre>
  
  <p>And I have admin.py like this:</p>
  
  <pre><code>from django.contrib import admin
  from quiz.models import Navigation, Category, Question, Choice, Answer, QuestionType
  
  
  
  class ChoiceInline(admin.TabularInline):
      model = Choice
      extra = 3
  
  
  class CategoryInline(admin.TabularInline):
      model = Category
  
  
  class QuestionTypeInline(admin.TabularInline):
      model = QuestionType
  
  class AnswerInline(admin.TabularInline):
      model = Answer
  
  class QuestionAdmin(admin.ModelAdmin):
      fieldsets = [
      (None,
      {'fields': ['question']}),
      ('Date information', {'fields': ['publication_date'], 'classes': ['collapse']}),
      ]
      inlines = [ChoiceInline, CategoryInline, AnswerInline, QuestionTypeInline]
  
      # Display two headings while displaying all the questions
      list_display = ('question', 'publication_date')
  
      # Add filter option
      list_filter = ['publication_date']
  
      # Add search capability
      search_fields = ['question']
  
      # Show the latest elements by default
      date_hierarchy = 'publication_date'
  
  
  
  
  admin.site.register(Question, QuestionAdmin)
  admin.site.register(Navigation)
  </code></pre>
  
  <p>There would be two types of questions: <code>Multiple Choice questions, text based questions.</code> So while creating the question, I want to show the choices if the user select multiple choice question and show the text based one input if the user select text based question. How can I do that?</p>