Commits

Anonymous committed 9a96378

rename non-admin setting to ARTICLES_NON_ADMIN_EDITING

Comments (0)

Files changed (1)

articles/admin.py

 
     def queryset(self, request):
         """Limit the list of articles to article posted by this user unless they're a superuser"""
-        """If ARTICLES_OPEN_EDITING is set to True in your settings, any user can view and edit all articles"""
+        """If ARTICLES_NON_ADMIN_EDITING  is set to True in your settings, any user can view and edit all articles"""
 
-        if request.user.is_superuser or (hasattr(settings, 'ARTICLES_OPEN_EDITING') and settings.ARTICLES_OPEN_EDITING == True):
+        if request.user.is_superuser or (hasattr(settings, 'ARTICLES_NON_ADMIN_EDITING ') and settings.ARTICLES_NON_ADMIN_EDITING  == True):
             return self.model._default_manager.all()
         else:
             return self.model._default_manager.filter(author=request.user)