Skip to content

Commit

Permalink
[#2093] Upgrade django-ordered-model to 3.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed Feb 8, 2024
1 parent fefb1f5 commit d650d79
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ django-log-outgoing-requests==0.6.0
# via -r requirements/base.in
django-open-forms-client==0.2.3
# via -r requirements/base.in
django-ordered-model==3.4.3
django-ordered-model==3.7.4
# via
# -r requirements/base.in
# django-admin-index
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ django-open-forms-client==0.2.3
# via
# -c requirements/base.txt
# -r requirements/base.txt
django-ordered-model==3.4.3
django-ordered-model==3.7.4
# via
# -c requirements/base.txt
# -r requirements/base.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ django-open-forms-client==0.2.3
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
django-ordered-model==3.4.3
django-ordered-model==3.7.4
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/configurations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ class SiteConfigurationPage(OrderedModel):

objects = OrderedModelManager()

class Meta:
class Meta(OrderedModel.Meta):
verbose_name = _("Flatpage in the footer")
verbose_name_plural = _("Flatpages in the footer")

Expand Down
4 changes: 1 addition & 3 deletions src/open_inwoner/pdc/models/product.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import html
import json
from typing import Union
from uuid import uuid4

from django.contrib.postgres.fields import ArrayField
from django.db import models
from django.urls import reverse
from django.utils.html import strip_tags
from django.utils.translation import ugettext_lazy as _

from filer.fields.file import FilerFileField
Expand All @@ -29,7 +27,7 @@ class CategoryProduct(OrderedModel):
product = models.ForeignKey("pdc.Product", on_delete=models.CASCADE)
order_with_respect_to = "category"

class Meta:
class Meta(OrderedModel.Meta):
ordering = ("category", "product")

def get_product_name(self):
Expand Down

0 comments on commit d650d79

Please sign in to comment.