from django.contrib import admin
from dialogos.models import Comment

class CommentAdmin(admin.ModelAdmin):  
    list_display = ['author', 'content_type', 'public']
    list_filter = ['public', 'content_type']

admin.site.register(Comment, CommentAdmin)

from django.contrib import admin

from dialogos.models import Comment


class CommentAdmin(admin.ModelAdmin):  
    list_display = ["author", "content_type", "public"]
    list_filter = ["public", "content_type"]


admin.site.register(Comment, CommentAdmin)

Update style to match Pinax conventions
Update style to match Pinax conventions
  from django.contrib import admin
+ 
  from dialogos.models import Comment
  
+ 
  class CommentAdmin(admin.ModelAdmin):  
-     list_display = ['author', 'content_type', 'public']
+     list_display = ["author", "content_type", "public"]
-     list_filter = ['public', 'content_type']
+     list_filter = ["public", "content_type"]
+ 
  
  admin.site.register(Comment, CommentAdmin)
  
Update style to match Pinax conventions
## Code Before:
from django.contrib import admin
from dialogos.models import Comment

class CommentAdmin(admin.ModelAdmin):  
    list_display = ['author', 'content_type', 'public']
    list_filter = ['public', 'content_type']

admin.site.register(Comment, CommentAdmin)

## Instruction:
Update style to match Pinax conventions
## Code After:
from django.contrib import admin

from dialogos.models import Comment


class CommentAdmin(admin.ModelAdmin):  
    list_display = ["author", "content_type", "public"]
    list_filter = ["public", "content_type"]


admin.site.register(Comment, CommentAdmin)
