from django import forms
from django.contrib.auth.models import User

from courses.models import CourseFile, CourseInformation


class CourseFilesForm(forms.ModelForm):
    class Meta:
        model = CourseFile
        fields = ("cfile", "cfile_class", "cfile_year", "cfile_content")
        exlcude = ("uploader", "course", "cfile")

    def __init__(self, *args, **kwargs):
        super(CourseFilesForm, self).__init__(*args, **kwargs)

d44f0a64d6365b3225c44a1df7fb4e58b18d6444
<mask token>

<mask token>


class CourseFilesForm(forms.ModelForm):


    class Meta:
        model = CourseFile
        fields = 'cfile', 'cfile_class', 'cfile_year', 'cfile_content'
        exlcude = 'uploader', 'course', 'cfile'
    <mask token>

<mask token>


class CourseFilesForm(forms.ModelForm):


    class Meta:
        model = CourseFile
        fields = 'cfile', 'cfile_class', 'cfile_year', 'cfile_content'
        exlcude = 'uploader', 'course', 'cfile'

    def __init__(self, *args, **kwargs):
        super(CourseFilesForm, self).__init__(*args, **kwargs)

from django import forms
from django.contrib.auth.models import User
from courses.models import CourseFile, CourseInformation


class CourseFilesForm(forms.ModelForm):


    class Meta:
        model = CourseFile
        fields = 'cfile', 'cfile_class', 'cfile_year', 'cfile_content'
        exlcude = 'uploader', 'course', 'cfile'

    def __init__(self, *args, **kwargs):
        super(CourseFilesForm, self).__init__(*args, **kwargs)

from django import forms
from django.contrib.auth.models import User

from courses.models import CourseFile, CourseInformation


class CourseFilesForm(forms.ModelForm):
    class Meta:
        model = CourseFile
        fields = ("cfile", "cfile_class", "cfile_year", "cfile_content")
        exlcude = ("uploader", "course", "cfile")

    def __init__(self, *args, **kwargs):
        super(CourseFilesForm, self).__init__(*args, **kwargs)
