Skip to content

Commit e160bf5

Browse files
committed
Bumps to version 0.1.9 adding Django 1.6 support.
1 parent f26e017 commit e160bf5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ django-singleton is a fork of Thomas Ashelford's [django-singletons](https://git
55

66
I forked his code to include Django 1.4 compatibility, as well as to remove the delete button within the admin (see credit below). I had to rename the repository so that I could submit this to the Python Package Index.
77

8+
Now includes Django 1.6 support, while maintaining backwards compatibility.
9+
810
[Code from Chris Church's fork](https://github.com/ninemoreminutes/django-singletons/commit/9b231666b9027d3bd1159f3db8bce34701193bdd) - I am merely synthesizing all this..
911

1012

@@ -31,13 +33,13 @@ To get the custom admin templates working, you need to add "singleton_models" to
3133
in models.py
3234

3335
from singleton_models.models import SingletonModel
34-
36+
3537
class HomePage(SingletonModel):
3638
welcome = models.TextField()
37-
39+
3840
def __unicode__(self):
3941
return u"The Home Page" # something like this will make admin message strings more coherent
40-
42+
4143
class Meta:
4244
verbose_name = "Home Page" # once again this will make sure your admin UI doesn't have illogical text
4345
verbose_name_plural = "Home Page"
@@ -47,5 +49,5 @@ in admin.py
4749

4850
from singleton_models.admin import SingletonModelAdmin
4951
from models import HomePage
50-
52+
5153
admin.site.register(HomePage, SingletonModelAdmin)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='django-singleton',
6-
version='0.1.8',
6+
version='0.1.9',
77
description='Reusable singleton models for Django',
88
author='Chris Davis',
99
author_email='defbyte@gmail.com',

0 commit comments

Comments
 (0)