Compare commits

..

No commits in common. "5354557f4ac8a5b7ea03be506b80cdde2cda9cc8" and "1d4af9e52fbe4d8dcdcbee6140b6811c13ef8ec6" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class WprViewSet(CustomListModelMixin, CustomRetrieveModelMixin, ComplexQueryMix
filterset_class = WprFilter
ordering = ["number", "create_time"]
ordering_fields = ["number", "create_time", "update_time"]
search_fields = ["number", "material__name", "material__model", "material__specification", "number_out","wm__batch"]
search_fields = ["number", "material__name", "material__model", "material__specification", "number_out"]
annotate_dict = {
"number_prefix": RawSQL("regexp_replace(wpmw_wpr.number, '(\\d+)$', '')", []),
"number_suffix": RawSQL("COALESCE(NULLIF(regexp_replace(wpmw_wpr.number, '.*?(\\d+)$', '\\1'), ''), '0')::bigint", []),