from django.contrib import admin
from .models import assignment_dates, homework

# admin.site.register(assignment_dates)

class HomeworkInline(admin.TabularInline):
    model = homework
    extra = 0

@admin.register(assignment_dates)
class assignment_datesAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'date')
    inlines = [HomeworkInline]

@admin.register(homework)
class homeworkAdmin(admin.ModelAdmin):
    list_display = ('num_task', 'date')
    fields = [('num_task', 'date'), 'text_task', 'answer_task']
bcb11af4d19078de0c609d8fadaa95dff1e2f9f8
<mask token>


@admin.register(assignment_dates)
class assignment_datesAdmin(admin.ModelAdmin):
    list_display = '__str__', 'date'
    inlines = [HomeworkInline]


@admin.register(homework)
class homeworkAdmin(admin.ModelAdmin):
    list_display = 'num_task', 'date'
    fields = [('num_task', 'date'), 'text_task', 'answer_task']

<mask token>


class HomeworkInline(admin.TabularInline):
    <mask token>
    <mask token>


@admin.register(assignment_dates)
class assignment_datesAdmin(admin.ModelAdmin):
    list_display = '__str__', 'date'
    inlines = [HomeworkInline]


@admin.register(homework)
class homeworkAdmin(admin.ModelAdmin):
    list_display = 'num_task', 'date'
    fields = [('num_task', 'date'), 'text_task', 'answer_task']

<mask token>


class HomeworkInline(admin.TabularInline):
    model = homework
    extra = 0


@admin.register(assignment_dates)
class assignment_datesAdmin(admin.ModelAdmin):
    list_display = '__str__', 'date'
    inlines = [HomeworkInline]


@admin.register(homework)
class homeworkAdmin(admin.ModelAdmin):
    list_display = 'num_task', 'date'
    fields = [('num_task', 'date'), 'text_task', 'answer_task']

from django.contrib import admin
from .models import assignment_dates, homework


class HomeworkInline(admin.TabularInline):
    model = homework
    extra = 0


@admin.register(assignment_dates)
class assignment_datesAdmin(admin.ModelAdmin):
    list_display = '__str__', 'date'
    inlines = [HomeworkInline]


@admin.register(homework)
class homeworkAdmin(admin.ModelAdmin):
    list_display = 'num_task', 'date'
    fields = [('num_task', 'date'), 'text_task', 'answer_task']

from django.contrib import admin
from .models import assignment_dates, homework

# admin.site.register(assignment_dates)

class HomeworkInline(admin.TabularInline):
    model = homework
    extra = 0

@admin.register(assignment_dates)
class assignment_datesAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'date')
    inlines = [HomeworkInline]

@admin.register(homework)
class homeworkAdmin(admin.ModelAdmin):
    list_display = ('num_task', 'date')
    fields = [('num_task', 'date'), 'text_task', 'answer_task']