Definition of models used for python-gitmodel
Project description
Unicore Gitmodels
=================
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
Changelog
=========
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.
=================
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
Changelog
=========
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file unicore-gitmodels-1.3.1.tar.gz
.
File metadata
- Download URL: unicore-gitmodels-1.3.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db19ac878e6d536e8b3238c83f655a0a41c1bdc041cb5a94dd55ad7d22fef6cd |
|
MD5 | ee8eb4b13a18208917cb9faee5695514 |
|
BLAKE2b-256 | e38c6e1a901c199bfd7f8a82fe81fb14dce93eda3fac80418830cf77cc64722e |