mongogeneric3
Class based generic views for mongoengine documents.
Note
Not all views Django provides are implemented. If you find mixins or views that are missing, feel free to implement them and provide a pull request :-)
Note 2
Fork from django-mongogeneric with support to python 3
Requirements
Django >= 1.3
mongoengine >= 0.6
Installation
$ pip install mongogeneric3
Implemented views
DetailView
ListView
CreateView
UpdateView
DeleteView
Most of the mixins provided by Django to build the above views are also there.
The Django documentation for class based generic views should work for the views provided here. The only difference is that everywhere Django requires model as an attribute, mongogeneric requires a document.
Embedded forms
Additionally to the above views, there is a view and a mixin that makes working with embedded document forms easier (e.g. for comments saved together with a post).
EmbeddedFormMixin
Extends: FormMixin
A mixin class that processes embedded forms, using EmbeddedDocumentForms from django mongodbforms.
embedded_form_class An EmbeddedDocumentForm that is passed into the template context and saved if the request is a POST request and the form is valid.
embedded_context_name Designates the name of the variable to use in the context.
EmbeddedDetailView
Extends: BaseEmbeddedFormMixin, DetailView
Renders a single document and provides a form for an embedded field.
Metadata
Release files for mongogeneric3 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mongogeneric3-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mongogeneric3-0.0.2-py2.py3-none-any.whl |
Release files / mongogeneric3-0.0.2-py2.py3-none-any.whl
| Download URL | mongogeneric3-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
116f0cef7a0e809dd1719256ae814cbe44fc9168a582a6b49940f2b4692b4038
|
|
BLAKE2b-256 checksum How to use checksums |
967a9a6db3c347102bb243488ede9c133fa48a639a38aacfbaeeb17467905599
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mongogeneric3 0.0.2
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.