Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.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.
Release History

Release History

This version
History Node

1.7.0

History Node

1.6.0

History Node

1.5.0

History Node

1.4.0

History Node

1.3.1

History Node

1.3.0

History Node

1.2.0

History Node

1.1.0

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
unicore-gitmodels-1.7.0.tar.gz (13.5 kB) Copy SHA256 Checksum SHA256 Source Oct 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting