Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!



Django-versioning allows you to version the data stored in django models, and stores only diff, not content copy.

Supports all field types excepts ManyToMany (currently).

Forked from


    # ...
    # ...
# ...
    # ...
   'versioning',  # Should be after apps with versioned models
    # ...


from django.db import models
from django.contrib.auth.models import User
import versioning

class Article(models.Model):
    title = models.CharField()
    body = models.TextField()
    is_active = models.BooleanField()
    weight = models.IntegerField(blank=True, null=True)
    creator = models.ForeignKey(User, blank=True, null=True)

    class Meta:
        permissions = (
            ("wiki.browse_revision_article", "Can browse revisions"),
            ("wiki.reapply_revision_article", "Can repply revision"),

    ['title', 'body', 'is_active', 'weight', 'creator', ]


<a href="{% url versioning_revision_list content_type=contenttype_id %}">View the list of revisions.</a>

If you have already existent content, to create a first revision, simple run:

./ versioning_setup wiki.Article -f

You can also view revisions in admin, by clicking "History" button on change object page.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.