from django.contrib import admin
from django.forms import SelectMultiple
from django.db import models
# Register your models here.
from career.models import *



class ProfessionAdmin(admin.ModelAdmin):
    formfield_overrides = { models.ManyToManyField: {'widget': SelectMultiple(attrs={'size':'10'})}, }



class CourseAdmin(admin.ModelAdmin):
    list_display = ('name','sphere')

admin.site.register(Sphere)
admin.site.register(Skill)
admin.site.register(Course, CourseAdmin)

admin.site.register(Profession, ProfessionAdmin)


1522548f84353c51f030355349131d1192ad0c66
<mask token>


class ProfessionAdmin(admin.ModelAdmin):
    <mask token>


class CourseAdmin(admin.ModelAdmin):
    list_display = 'name', 'sphere'


<mask token>

<mask token>


class ProfessionAdmin(admin.ModelAdmin):
    formfield_overrides = {models.ManyToManyField: {'widget':
        SelectMultiple(attrs={'size': '10'})}}


class CourseAdmin(admin.ModelAdmin):
    list_display = 'name', 'sphere'


<mask token>

<mask token>


class ProfessionAdmin(admin.ModelAdmin):
    formfield_overrides = {models.ManyToManyField: {'widget':
        SelectMultiple(attrs={'size': '10'})}}


class CourseAdmin(admin.ModelAdmin):
    list_display = 'name', 'sphere'


admin.site.register(Sphere)
admin.site.register(Skill)
admin.site.register(Course, CourseAdmin)
admin.site.register(Profession, ProfessionAdmin)

from django.contrib import admin
from django.forms import SelectMultiple
from django.db import models
from career.models import *


class ProfessionAdmin(admin.ModelAdmin):
    formfield_overrides = {models.ManyToManyField: {'widget':
        SelectMultiple(attrs={'size': '10'})}}


class CourseAdmin(admin.ModelAdmin):
    list_display = 'name', 'sphere'


admin.site.register(Sphere)
admin.site.register(Skill)
admin.site.register(Course, CourseAdmin)
admin.site.register(Profession, ProfessionAdmin)

from django.contrib import admin
from django.forms import SelectMultiple
from django.db import models
# Register your models here.
from career.models import *



class ProfessionAdmin(admin.ModelAdmin):
    formfield_overrides = { models.ManyToManyField: {'widget': SelectMultiple(attrs={'size':'10'})}, }



class CourseAdmin(admin.ModelAdmin):
    list_display = ('name','sphere')

admin.site.register(Sphere)
admin.site.register(Skill)
admin.site.register(Course, CourseAdmin)

admin.site.register(Profession, ProfessionAdmin)

