Skip to main content

Simply hiding a useless data from query results

Project description

https://github.com/bigcrazyfrog/django-hidden-models/actions/workflows/tests.yaml/badge.svg https://coveralls.io/repos/bigcrazyfrog/django-hidden-models/badge.png

Simply hiding a useless data from query results.

Status: developing

Example

# imports
from hidden_models.models import VisibleModel
from django.db import models

# Models
class Article(VisibleModel):
    name = models.CharField(max_length=100)


# Example of use

>>> Article.objects.create(name='article1')
>>> Article.objects.create(name='article2')

>>> Article.objects.all() # Queryset [<Article: (1)>, <Article: (2)>]

# This article will be hided, but not deleted from the database
>>> Article.objects.filter(name='article1').hide()

>>> Article.objects.all() # Queryset [<Article: (2)>]

Installation

Installing from pypi (using pip).

pip install django-hidden-models

Add hidden_models in your INSTALLED_APPS:

INSTALLED_APPS = [
    'hidden_models',
    [...]
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-hidden-models-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_hidden_models-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file django-hidden-models-0.1.0.tar.gz.

File metadata

  • Download URL: django-hidden-models-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for django-hidden-models-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ddfafec8fc4580bd04fda7e385f0e601faa7c6c1e62faa39c9eccefbd6409a02
MD5 574bbce13ce0733f0d88750952001390
BLAKE2b-256 a0759268bc7ad185acdd9b59895584a452afd68ce3fd437bea39267edcc969d7

See more details on using hashes here.

File details

Details for the file django_hidden_models-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hidden_models-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4c3609eb49dbb38c7f17d923ef50fede9a72270882cf76e911493573d7e9f28
MD5 c4c4bf325acab80d63c09ca84a5306ff
BLAKE2b-256 9aee26f34367af0ad4bdf70949997820a8895d5b4ab2c6cc7892dc747847fee2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page