from django.contrib import admin
from .models import *


class TaskAdmin(admin.ModelAdmin):
    list_display = ('title', 'priority', 'status','project','assigned_to')
    list_filter = ('title', 'project')
    ordering = ('start_date',)
    search_fields = ('title', 'project')

class ProjectAdmin(admin.ModelAdmin):
    list_display = ('title',)
    list_filter = ('title', 'members')
    ordering = ('title',)
    search_fields = ('title',)

class CommentAdmin(admin.ModelAdmin):
    list_display = ('date','user','task')
    list_filter = ('user','task')
    ordering = ('date',)
    search_fields = ('date','task')


admin.site.register(Project,ProjectAdmin)
admin.site.register(Task,TaskAdmin)
admin.site.register(Comment,CommentAdmin)

8f0af96d7358e2d514995a80b36c0f3b8575cf7f
<mask token>


class ProjectAdmin(admin.ModelAdmin):
    list_display = 'title',
    list_filter = 'title', 'members'
    ordering = 'title',
    search_fields = 'title',


class CommentAdmin(admin.ModelAdmin):
    list_display = 'date', 'user', 'task'
    list_filter = 'user', 'task'
    ordering = 'date',
    search_fields = 'date', 'task'


<mask token>

<mask token>


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


class ProjectAdmin(admin.ModelAdmin):
    list_display = 'title',
    list_filter = 'title', 'members'
    ordering = 'title',
    search_fields = 'title',


class CommentAdmin(admin.ModelAdmin):
    list_display = 'date', 'user', 'task'
    list_filter = 'user', 'task'
    ordering = 'date',
    search_fields = 'date', 'task'


<mask token>

<mask token>


class TaskAdmin(admin.ModelAdmin):
    list_display = 'title', 'priority', 'status', 'project', 'assigned_to'
    list_filter = 'title', 'project'
    ordering = 'start_date',
    search_fields = 'title', 'project'


class ProjectAdmin(admin.ModelAdmin):
    list_display = 'title',
    list_filter = 'title', 'members'
    ordering = 'title',
    search_fields = 'title',


class CommentAdmin(admin.ModelAdmin):
    list_display = 'date', 'user', 'task'
    list_filter = 'user', 'task'
    ordering = 'date',
    search_fields = 'date', 'task'


<mask token>

<mask token>


class TaskAdmin(admin.ModelAdmin):
    list_display = 'title', 'priority', 'status', 'project', 'assigned_to'
    list_filter = 'title', 'project'
    ordering = 'start_date',
    search_fields = 'title', 'project'


class ProjectAdmin(admin.ModelAdmin):
    list_display = 'title',
    list_filter = 'title', 'members'
    ordering = 'title',
    search_fields = 'title',


class CommentAdmin(admin.ModelAdmin):
    list_display = 'date', 'user', 'task'
    list_filter = 'user', 'task'
    ordering = 'date',
    search_fields = 'date', 'task'


admin.site.register(Project, ProjectAdmin)
admin.site.register(Task, TaskAdmin)
admin.site.register(Comment, CommentAdmin)

from django.contrib import admin
from .models import *


class TaskAdmin(admin.ModelAdmin):
    list_display = ('title', 'priority', 'status','project','assigned_to')
    list_filter = ('title', 'project')
    ordering = ('start_date',)
    search_fields = ('title', 'project')

class ProjectAdmin(admin.ModelAdmin):
    list_display = ('title',)
    list_filter = ('title', 'members')
    ordering = ('title',)
    search_fields = ('title',)

class CommentAdmin(admin.ModelAdmin):
    list_display = ('date','user','task')
    list_filter = ('user','task')
    ordering = ('date',)
    search_fields = ('date','task')


admin.site.register(Project,ProjectAdmin)
admin.site.register(Task,TaskAdmin)
admin.site.register(Comment,CommentAdmin)
