winipedia-utils 0.1.14__py3-none-any.whl → 0.1.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winipedia_utils/django/database.py +0 -15
- winipedia_utils/projects/poetry/config.py +1 -1
- {winipedia_utils-0.1.14.dist-info → winipedia_utils-0.1.16.dist-info}/METADATA +1 -1
- {winipedia_utils-0.1.14.dist-info → winipedia_utils-0.1.16.dist-info}/RECORD +6 -6
- {winipedia_utils-0.1.14.dist-info → winipedia_utils-0.1.16.dist-info}/LICENSE +0 -0
- {winipedia_utils-0.1.14.dist-info → winipedia_utils-0.1.16.dist-info}/WHEEL +0 -0
@@ -16,7 +16,6 @@ from django.db.models.fields.related import ForeignKey, ForeignObjectRel
|
|
16
16
|
from django.forms.models import model_to_dict
|
17
17
|
|
18
18
|
from winipedia_utils.logging.logger import get_logger
|
19
|
-
from winipedia_utils.text.string import split_on_uppercase
|
20
19
|
|
21
20
|
if TYPE_CHECKING:
|
22
21
|
from django.db.models.options import Options
|
@@ -267,9 +266,6 @@ class BaseModel(Model):
|
|
267
266
|
|
268
267
|
# abstract does not inherit in children
|
269
268
|
abstract = True
|
270
|
-
# the rest does inherit
|
271
|
-
verbose_name = "Base Model"
|
272
|
-
verbose_name_plural = "Base Models"
|
273
269
|
|
274
270
|
def __str__(self) -> str:
|
275
271
|
"""Base string representation of a model.
|
@@ -291,14 +287,3 @@ class BaseModel(Model):
|
|
291
287
|
def meta(self) -> "Options[Self]":
|
292
288
|
"""Get the meta options for the model."""
|
293
289
|
return self._meta
|
294
|
-
|
295
|
-
@classmethod
|
296
|
-
def make_verbose_name(cls) -> str:
|
297
|
-
"""Make a verbose name for the model."""
|
298
|
-
# split by upper case letters
|
299
|
-
return " ".join(split_on_uppercase(cls.__name__)).title()
|
300
|
-
|
301
|
-
@classmethod
|
302
|
-
def make_verbose_name_plural(cls) -> str:
|
303
|
-
"""Make a verbose name plural for the model."""
|
304
|
-
return cls.make_verbose_name() + "s"
|
@@ -32,7 +32,7 @@ def _get_pyproject_toml_tool_configs() -> dict[str, Any]:
|
|
32
32
|
"""Get the tool configurations for pyproject.toml."""
|
33
33
|
return {
|
34
34
|
"ruff": {
|
35
|
-
"exclude": [".*"],
|
35
|
+
"exclude": [".*", "**/migrations/*.py"],
|
36
36
|
"lint": {
|
37
37
|
"select": ["ALL"],
|
38
38
|
"ignore": ["D203", "D213", "COM812", "ANN401"],
|
@@ -9,7 +9,7 @@ winipedia_utils/data/dataframe.py,sha256=7rRy4LDv-4bJeISUPsxrQqTiFI7ENSzk4gKaVgT
|
|
9
9
|
winipedia_utils/django/__init__.py,sha256=ZnI3rINKvT4m9K3eeGg9RVBjBPH73zaBhb0Qy4hLt5g,683
|
10
10
|
winipedia_utils/django/bulk.py,sha256=7MLfq83xanxbVFo4ANdtcYv5S-oQwdrNkH5ljPzjKLM,20375
|
11
11
|
winipedia_utils/django/command.py,sha256=ENEg_crSbnm3nQIks-j2DjjAfeZ7ppJkZOyw__IpSYw,13824
|
12
|
-
winipedia_utils/django/database.py,sha256=
|
12
|
+
winipedia_utils/django/database.py,sha256=_tUahz0RMub-Zcl4dpWFrrfwTemMgVs_3c58mP8x5YM,10926
|
13
13
|
winipedia_utils/git/__init__.py,sha256=pPo5DDqaQkFim8L6x22DXjqthLnKAxLyXlXl7JXGUdw,48
|
14
14
|
winipedia_utils/git/gitignore/__init__.py,sha256=t65uvpOaNvh7ICgwuJFRr7vS2nWfxzWUGIpnJs0_jzE,58
|
15
15
|
winipedia_utils/git/gitignore/gitignore.py,sha256=wCU2lRztTFKQ7JrKnCqPLCsuVRjfx8wGfTy42BLgFJI,4512
|
@@ -36,7 +36,7 @@ winipedia_utils/os/__init__.py,sha256=WSLt7tb6HqWRlCGGIEwRfVksF0sLJNeEW3iZeJhGWk
|
|
36
36
|
winipedia_utils/os/os.py,sha256=ITuiLLfjGBV2jH8tHQfwVzsICT-jY1zUxtwu3ASJBG4,1690
|
37
37
|
winipedia_utils/projects/__init__.py,sha256=6oTiSlUMAwO5xnH4SGVnvspzKcxrxo9kn1L4xkjq1p8,53
|
38
38
|
winipedia_utils/projects/poetry/__init__.py,sha256=0yNMuu9KmM19od4VBxBV3HLK-RdCsa0e2Zhg33J7RmQ,60
|
39
|
-
winipedia_utils/projects/poetry/config.py,sha256=
|
39
|
+
winipedia_utils/projects/poetry/config.py,sha256=ghJzlNDVrSfG5Mg0JjnL9Xmz6fVD-rAHl41tjbFUBb8,2993
|
40
40
|
winipedia_utils/projects/poetry/poetry.py,sha256=5jyUSMxhCZ7pz9bOaz5E9r7Da9qIrGOp6wcBzI1y7Cg,932
|
41
41
|
winipedia_utils/projects/project.py,sha256=2nz1Hh51A-shjgdPCgiDw-ODrVtOtiHEHQnMPjAJZ-A,1587
|
42
42
|
winipedia_utils/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
@@ -61,7 +61,7 @@ winipedia_utils/testing/tests/base/utils/utils.py,sha256=dUPDrgAxlfREQb33zz23Mfz
|
|
61
61
|
winipedia_utils/testing/tests/conftest.py,sha256=8RounBlI8Jq1aLaLNpv84MW4ne8Qq0aavQextDOp5ng,920
|
62
62
|
winipedia_utils/text/__init__.py,sha256=j2bwtK6kyeHI6SnoBjpRju0C1W2n2paXBDlNjNtaUxA,48
|
63
63
|
winipedia_utils/text/string.py,sha256=1jbBftlgxffGgSlPnQh3aRPIr8XekEwpSenjFCW6JyM,3478
|
64
|
-
winipedia_utils-0.1.
|
65
|
-
winipedia_utils-0.1.
|
66
|
-
winipedia_utils-0.1.
|
67
|
-
winipedia_utils-0.1.
|
64
|
+
winipedia_utils-0.1.16.dist-info/LICENSE,sha256=3PrKJ2CWNrnyyHaC_r0wPDSukVWgmjOxHr__eQVH7cw,1087
|
65
|
+
winipedia_utils-0.1.16.dist-info/METADATA,sha256=BUZaofcjM2ONxS4qKN3TRABjtVoB2w5sFeOrENDMlN4,12385
|
66
|
+
winipedia_utils-0.1.16.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
67
|
+
winipedia_utils-0.1.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|