django-siteflags
https://github.com/idlesign/django-siteflags
Description
Reusable application for Django allowing users to flag/bookmark site objects
So you want a user to be able to put some flags on certain site entities.
Let's say you need a kind of bookmark powered service, or a site where content is flagged and moderated, or a simplified rating system, or something similar.
Inherit you model from siteflags.models.ModelWithFlag and you're almost done.
Like that:
# myapp/models.py
from siteflags.models import ModelWithFlag
class Article(ModelWithFlag):
... # Some model fields here.
And like so:
# myapp/views.py
from django.shortcuts import get_object_or_404
from .models import Article
def article_details(request, article_id):
article = get_object_or_404(Article, pk=article_id)
user = request.user
article.set_flag(user)
article.is_flagged(user)
article.remove_flag(user)
...
Quite simple. Quite generic. Read the documentation.
Documentation
Metadata
Release files for django-siteflags 1.3.1
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_siteflags-1.3.1.tar.gz | 7.6 kB | Without provenance | Details for django_siteflags-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_siteflags-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for django_siteflags-1.3.1-py3-none-any.whl |
Total release size: 19.0 kB
Release files / django_siteflags-1.3.1.tar.gz
| Download URL | django_siteflags-1.3.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8ab823daf693fc9ab379506c6178d714d2c79fa5aaf2776c02a5e0982b05f8a
|
|
BLAKE2b-256 checksum How to use checksums |
d33f2a14293278d0cf15ec89657006e4ae0760cbbaa55d10a2989509457453f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / django_siteflags-1.3.1-py3-none-any.whl
| Download URL | django_siteflags-1.3.1-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c9b4d3d18e30f96df98a315e0bed4ab7f0b6a48e34de6fbde8bcbda3518ee35
|
|
BLAKE2b-256 checksum How to use checksums |
588d1cbaad5ea4b61ba4f2bed74889bbcda065fb24f1edad1744b0bb9098386d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for django-siteflags 1.3.1
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.