How to let user choose which table needs to be updated Django
===

I have a form in my website, which is the same for three tables (Homework, Class, Random)
So basically I want to make a ChoiceField on the top of the form, to let user choose where to upload file.

I was thinking, because these tables have common abstract class, may be I can choose it from there somehow. But can not figure out how.

Or may be there is much better solution for this.

just in case this is my code:

    #models.py
    class FileDescription(models.Model):
        
        class Meta:
            abstract = True;
            ordering = ['file_creation_time']
            
        subject = models.ForeignKey('Subjects', null=True, blank=True, primary_key=True)
        subject_name = models.CharField(max_length=100)
        file_uploaded_by = models.CharField(max_length=100)
        file_name = models.CharField(max_length=100)
        file_description = models.TextField()
        file_creation_time = models.DateTimeField(auto_now_add=True)
        
        def __unicode__(self):
            return u'%s' % (self.file_name)

    #template
    <ul id="tabs">
    		<li><a href="#homework">Homework</a></li>
    		<li><a href="#class-papers">Class Papers</a></li>
    		<li><a href="#random-papers">Random Papers</a></li>
    	</ul>
    	
    	<div id="homework" class="tab-section">
    		<h2>Homework</h2>
    		<p>This section contains Homework</p>
    		
    			{% if homework_files %}
    				<ul>
    					{% for file in homework_files %}
    						<li>{{ file.file_name }}
    					{% endfor %}
    				</ul>
    			{% endif %}
    	</div>

    #forms.py
    class Homework_Content_Form(forms.ModelForm):
        class Meta:
            model=Homework_Content
            exclude=('subject', 
                     'subject_name',
                     'file_creation_time',
                     'file_uploaded_by',
                     )