=================
Definition of models used for python-gitmodel
.. image:: https://travis-ci.org/praekelt/unicore-gitmodels.svg
:target: https://travis-ci.org/praekelt/unicore-gitmodels
Installation
------------
::
$ pip install unicore-gitmodels
Usage
-----
::
# models.py
from unicore_gitmodels.models import GitPageModel, GitCategoryModel
ws = Workspace('/path/to/repo/.git')
GitPage = ws.register_model(GitPageModel)
GitCategory = ws.register_model(GitCategoryModel)
::
# views.py
page = GitPage(title='a title', slug='a-title', content='some sample content')
page.save(True, message="sample git commit")
Authors
=======
Praekelt Foundation
-------------------
* Milton Madanda
* Simon de Haan
Changelog
=========
1.7.0
-----
#. Add default sorting to `all()` using position field on GitPageModel
1.6.0
-----
#. Add default sorting to `all()` using position field
1.5.0
-----
#. Add `related_pages` and ListField() type.
1.4.0
-----
#. Feature category in navbar
1.3.1
-----
#. Ensure language is returned in dto.
1.3.0
-----
#. Added featured boolean field.
1.2.0
-----
#. Added featured_in_category boolean field.
1.1.0
-----
#. Added language and source fields.
1.0.3
-----
#. Add slugify to page model.
1.0.2
-----
#. Add slugify to model for cases when no slug is provided.
1.0.1
-----
#. Ensure all files included in pypi package.
1.0.0
-----
#. Initial version from unicore-cms/unicore-cms-django.
Metadata
Release files for unicore-gitmodels 1.7.0
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 |
|---|---|---|---|---|
| unicore-gitmodels-1.7.0.tar.gz | 13.5 kB | Without provenance | Details for unicore-gitmodels-1.7.0.tar.gz |
Release files / unicore-gitmodels-1.7.0.tar.gz
| Download URL | unicore-gitmodels-1.7.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d6ea3e6b9714876d3c1f61d87badffbdf08e78c2acd0523dd8bc732cc37a3eb
|
|
BLAKE2b-256 checksum How to use checksums |
a479563990d5e432bb242b42ad520598156b044ed2233eff79df9654db8e52ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for unicore-gitmodels 1.7.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.