9393)
9494from dataedit .metadata import load_metadata_from_db , save_metadata_to_db
9595from dataedit .metadata .widget import MetaDataWidget
96- from dataedit .models import Embargo
96+ from dataedit .models import Embargo , PeerReview , PeerReviewManager , Table , Tag , Topic
9797from dataedit .models import Filter as DBFilter
98- from dataedit .models import PeerReview , PeerReviewManager , Table , Tag , Topic
9998from dataedit .models import View as DBView
10099from dataedit .models import View as DataViewModel
101100from login import models as login_models
106105 TOPIC_SCENARIO ,
107106)
108107
109- ITEMS_PER_PAGE = 50 # how many tabled per page should be displayed
108+ ITEMS_PER_PAGE = 1 # how many tabled per page should be displayed
110109
111110
112111class StandaloneMetaEditView (View ):
@@ -402,6 +401,11 @@ def tables_view(request: HttpRequest, topic: str) -> HttpResponse:
402401 searched_query_string = request .GET .get ("query" )
403402 searched_tag_ids = request .GET .getlist ("tags" )
404403
404+ # all query params without "page"
405+ params_wo_page = request .GET .copy ()
406+ params_wo_page .pop ("page" , None )
407+ params_wo_page = params_wo_page .urlencode ()
408+
405409 Tag .increment_usage_count_many (searched_tag_ids )
406410
407411 # find all tables (layzy query set) in this topic
@@ -426,6 +430,7 @@ def tables_view(request: HttpRequest, topic: str) -> HttpResponse:
426430 "tables_paginated" : tables_paginated ,
427431 "query" : searched_query_string ,
428432 "tags" : searched_tag_ids ,
433+ "params_wo_page" : params_wo_page ,
429434 "topic" : topic ,
430435 "doc_oem_builder_link" : DOCUMENTATION_LINKS ["oemetabuilder" ],
431436 },
0 commit comments