Comment/Remove generic tabular inlines.
parent
7c04ff3117
commit
586685e2a1
|
@ -20,6 +20,12 @@ from taiga.projects.milestones.admin import MilestoneInline
|
|||
from taiga.users.admin import RoleInline
|
||||
from . import models
|
||||
|
||||
# import reversion
|
||||
# class AttachmentAdmin(reversion.VersionAdmin):
|
||||
# list_display = ["id", "project", "attached_file", "owner", "content_type", "content_object"]
|
||||
# list_display_links = ["id", "attached_file",]
|
||||
# list_filter = ["project", "content_type"]
|
||||
|
||||
|
||||
class MembershipAdmin(admin.ModelAdmin):
|
||||
list_display = ['project', 'role', 'user']
|
||||
|
|
|
@ -17,14 +17,13 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from taiga.projects.attachments.admin import AttachmentInline
|
||||
|
||||
from . import models
|
||||
|
||||
|
||||
class IssueAdmin(admin.ModelAdmin):
|
||||
list_display = ["project", "milestone", "ref", "subject",]
|
||||
list_display_links = ["ref", "subject",]
|
||||
inlines = [AttachmentInline]
|
||||
# inlines = [AttachmentInline]
|
||||
|
||||
def get_object(self, *args, **kwargs):
|
||||
self.obj = super().get_object(*args, **kwargs)
|
||||
|
|
|
@ -24,7 +24,7 @@ class TaskAdmin(admin.ModelAdmin):
|
|||
list_display = ["project", "milestone", "user_story", "ref", "subject",]
|
||||
list_display_links = ["ref", "subject",]
|
||||
list_filter = ["project"]
|
||||
inlines = [AttachmentInline]
|
||||
# inlines = [AttachmentInline]
|
||||
|
||||
def get_object(self, *args, **kwargs):
|
||||
self.obj = super().get_object(*args, **kwargs)
|
||||
|
|
|
@ -41,7 +41,7 @@ class UserStoryAdmin(admin.ModelAdmin):
|
|||
list_display = ["project", "milestone", "ref", "subject",]
|
||||
list_display_links = ["ref", "subject",]
|
||||
list_filter = ["project"]
|
||||
inlines = [RolePointsInline, AttachmentInline]
|
||||
inlines = [RolePointsInline]
|
||||
|
||||
def get_object(self, *args, **kwargs):
|
||||
self.obj = super().get_object(*args, **kwargs)
|
||||
|
|
|
@ -17,13 +17,14 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from taiga.projects.attachments.admin import AttachmentInline
|
||||
from taiga.projects.wiki.models import WikiPage
|
||||
|
||||
from . import models
|
||||
|
||||
class WikiPageAdmin(admin.ModelAdmin):
|
||||
list_display = ["project", "slug", "owner"]
|
||||
list_display_links = list_display
|
||||
inlines = [AttachmentInline]
|
||||
# inlines = [AttachmentInline]
|
||||
|
||||
admin.site.register(models.WikiPage, WikiPageAdmin)
|
||||
|
||||
|
|
Loading…
Reference in New Issue