Skip to main content

A simple application to allow you to attach notes to models.

Installation

Notes uses generic relations to handle attaching themselves to models. So installation is basically just like adding a generic relation item to your model.

  1. Add ‘notes’ to your INSTALLED_APPS variable

  2. Import the Note model:

    from notes.models import Note

  3. Add the note inline to your model’s admin def in your admin.py file:

    from notes.admin import NoteInline

    class YourModelAdmin(admin.ModelAdmin):

    inlines = [ NoteInline, ]

  4. To enable easy management you can add a hook to your model:

    notes=generic.GenericRelation(Note)

Usage

Follow the steps above (including 4) and you should have access to all the notes at instance_of_yourmodel.notes_set.all():

>>> object = YourModel.objects.get(pk=1)
>>> notes_for_object = object.notes_set.all()

Simple.

Metadata

Release files for notes 0.3.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 notes 0.3.0
File Size Uploaded Provenance
notes-0.3.0.tar.gz 4.8 kB Without provenance Details

Release files / notes-0.3.0.tar.gz

Download URL notes-0.3.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
db47ce667520d797d5db72f00f7b11a67f16bc0c18794041ccee07d86792d266
BLAKE2b-256 checksum
How to use checksums
05a7a998305a479fe19f7471236a7bf0e43b8eb1b351a995c141696182512645
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for notes 0.3.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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file No provenance

0.2.0

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