项目作者: davidslusser

项目描述 :
a django application to add notes to models
高级语言: Python
项目地址: git://github.com/davidslusser/django-modelnotes.git
创建时间: 2021-01-12T06:34:59Z
项目社区:https://github.com/davidslusser/django-modelnotes

开源协议:Apache License 2.0

下载


django-modelnotes

A django-modelnotes is a reusable django application for adding notes to models.

This app is still under development

Author David Slusser
Description A django application for adding notes to models.
Requirements Python 3.x
Django 3.x

Documentation

Installation

  • install via pip
    shell script pip install django-modelnotes
  • add notes to your INSTALLED_APPS
    1. INSTALLED_APPS = [
    2. ...
    3. 'modelnotes',
    4. ]
  • to include views to manage notes, add the following to your project-level urls.py:

    1. urlpatterns = [
    2. ...
    3. path('modelnotes/', include('modelnotes.urls', )),
    4. ]
  • run migrations
    shell script python ./manage.py migrate modelnotes

Usage

add to models via GenericRelation

  1. from modelnotes.models import ModelNoteField
  2. class MyModel(models.Model):
  3. ...
  4. notes = ModelNoteField()

License

django-modelnotes is licensed under the MIT license (see the LICENSE file for details).

Features

  • included admin page with search, filters, and bulk editing
  • variable scope; notes can be scoped to private, group or public
  • permission controls available; notes can be set with read, edit, and delete permissions
  • list views and bootstrap-based templates included