Skip to content

Commit

Permalink
removing
Browse files Browse the repository at this point in the history
  • Loading branch information
berk76 committed Jan 7, 2025
1 parent cec2fdf commit a059413
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions svjis/articles/views_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def admin_company_save_view(request):
@permission_required("articles.svjis_edit_admin_company")
@require_GET
def admin_board_view(request):
board_list = models.Board.objects.select_related('member').all()
board_list = models.Board.objects.select_related('member')
ctx = utils.get_context()
ctx['aside_menu_name'] = _("Administration")
ctx['aside_menu_items'] = get_side_menu('board', request.user)
Expand Down Expand Up @@ -268,7 +268,7 @@ def admin_entrance_delete_view(request, pk):
@permission_required("articles.svjis_edit_admin_building")
@require_GET
def admin_building_unit_view(request):
unit_list = models.BuildingUnit.objects.select_related('type', 'entrance').all()
unit_list = models.BuildingUnit.objects.select_related('type', 'entrance')
type_list = models.BuildingUnitType.objects.all()
entrance_list = models.BuildingEntrance.objects.all()

Expand Down
2 changes: 1 addition & 1 deletion svjis/articles/views_faults.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_side_menu(active_item, user):
@permission_required("articles.svjis_view_fault_menu")
@require_GET
def faults_list_view(request):
fault_list = models.FaultReport.objects.select_related('created_by_user', 'assigned_to_user').all()
fault_list = models.FaultReport.objects.select_related('created_by_user', 'assigned_to_user')
scope = request.GET.get('scope', '')
if scope == 'open':
fault_list = fault_list.filter(closed=False)
Expand Down
6 changes: 3 additions & 3 deletions svjis/articles/views_redaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def redaction_menu_delete_view(request, pk):
@permission_required("articles.svjis_edit_article")
@require_GET
def redaction_article_view(request):
article_list = models.Article.objects.select_related('author', 'menu').all()
article_list = models.Article.objects.select_related('author', 'menu')

# Search
search = request.GET.get('search')
Expand Down Expand Up @@ -327,7 +327,7 @@ def redaction_article_asset_delete_view(request, pk):
@permission_required("articles.svjis_edit_article_news")
@require_GET
def redaction_news_view(request):
news_list = models.News.objects.all()
news_list = models.News.objects.select_related('author')
header = _("News")

# Paginator
Expand Down Expand Up @@ -474,7 +474,7 @@ def redaction_useful_link_delete_view(request, pk):
@permission_required("articles.svjis_edit_survey")
@require_GET
def redaction_survey_view(request):
survey_list = models.Survey.objects.select_related('author').all()
survey_list = models.Survey.objects.select_related('author')
header = _("Surveys")

# Paginator
Expand Down

0 comments on commit a059413

Please sign in to comment.