Skip to main content

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

  1. Install this package as any other requirement to your project.
  2. Add jables to your INSTALLED_APPS.
  3. 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)

Source distribution for django-jables 1.0
File Size Uploaded
django-jables-1.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-jables 1.0
File Interpreter ABI Platform
django_jables-1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page