##// END OF EJS Templates
Don't allow editing global id content via admin site
neko259 -
r1550:9b4affd0 default
parent child Browse files
Show More
@@ -124,4 +124,5 b' class GlobalIdAdmin(admin.ModelAdmin):'
124 def is_linked(self, obj):
124 def is_linked(self, obj):
125 return Post.objects.filter(global_id=obj).exists()
125 return Post.objects.filter(global_id=obj).exists()
126
126
127 list_display = ('__str__', 'is_linked',) No newline at end of file
127 list_display = ('__str__', 'is_linked',)
128 readonly_fields = ('content',) No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now