File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -560,9 +560,11 @@ def choices(self, cl):
560560
561561 def queryset (self , request , queryset ):
562562 if not self .value ():
563- liquidated_status = self .model ._meta .get_field (
564- "status"
565- ).choices .liquidated .id
563+ liquidated_status = [
564+ k
565+ for (k , v ) in self .model ._meta .get_field ("status" ).choices
566+ if v == self .parameter_name
567+ ][0 ]
566568 queryset = queryset .exclude (status = liquidated_status )
567569
568570 return queryset
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ def _gen():
205205LOCALE_PATHS = (os .path .join (BASE_DIR , "locale" ),)
206206TIME_ZONE = "Europe/Warsaw"
207207USE_I18N = bool_from_env ("USE_I18N" , True )
208+ USE_L10N = bool_from_env ("USE_L10N" , True )
208209USE_TZ = False
209210
210211STATIC_URL = "/static/"
You can’t perform that action at this time.
0 commit comments