Skip to main content

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
* Simon de Haan
Changelog
=========

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unicore-gitmodels-1.6.0.tar.gz (12.7 kB view details)

Uploaded Source

File details

Details for the file unicore-gitmodels-1.6.0.tar.gz.

File metadata

File hashes

Hashes for unicore-gitmodels-1.6.0.tar.gz
Algorithm Hash digest
SHA256 a60f5bbac1cd18e256148a44aa294ac4bb37097d5363ac9c8a4312f7be548df3
MD5 d8e9309b5958495d2db2c9392575967d
BLAKE2b-256 f598c143e072902560baadb3063d366a4f9d7c264e3a57fef015b777ea96d281

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page