django-notesAdd notes to your models | |
Download |
django-notes Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Colin Powell
- Publisher web site:
- http://onecardinal.com
django-notes Tags
django-notes Description
Add notes to your models django-notes is a simple Django app to allow you to attach notes to models.InstallationNotes 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 variable2. Import the Note model: from notes.models import Note3. 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 = 4. To enable easy management you can add a hook to your model: notes=generic.GenericRelation(Note)UsageFollow 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. Requirements: · Python · Django
django-notes Related Software