Jean-Baptiste, aka Jables
This package contains a single useful base model I was copying over and over onto every new project. It was time to package it up and reuse it.
This is a basic model from which all the project's model should inherit. It is defined as "abstract".
It defines a couple of basic fields every model should have:
-
an ID as CharField/NanoID: this avoids that content could be "discovered" if using auto increment and instead is a better UUID
-
created_at: a datetime field with "auto_now_add", so we track when the model was created.
-
updated_at: a datetime field with "auto_now", so we track when the model was last updated.
The name comes from Django Reinhart father, Jean-Baptiste (or Jables, for short).
How to use it
- Install this package as any other requirement to your project.
- Add
jablesto yourINSTALLED_APPS. - When creating models, inherit from
JBModel:
from jables.models import JBModel
class MyModel(JBModel):
...
Metadata
Release files for django-jables 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-jables-1.0.tar.gz | 15.1 kB | Without provenance | Details for django-jables-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_jables-1.0-py3-none-any.whl | Python 3 | none | any | Details for django_jables-1.0-py3-none-any.whl |
Total release size: 30.7 kB
Release files / django-jables-1.0.tar.gz
| Download URL | django-jables-1.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abf990ff5fbc0091b2f4bff0db91cad0836a447da9b649f18e7ffb9312a22331
|
|
BLAKE2b-256 checksum How to use checksums |
f00047b6c38d363098a39b9eeaf1f2e1ed7117a4daccc2937cf6b0d44092a6c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
|
Release files / django_jables-1.0-py3-none-any.whl
| Download URL | django_jables-1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ce9482b6bdbaae8f94e387e959989315438a3b850a7522b6978284a97cbac6e
|
|
BLAKE2b-256 checksum How to use checksums |
7a77fbdc3f6c4f966f31d532f56560fd439193b8b135046d3974c68d0cebb7f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
|
Security for django-jables 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.