mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Merge branch 'master' of github.com:carljm/django-model-utils
* 'master' of github.com:carljm/django-model-utils: Add badge for Travis CI to README file Fix BooleanField default (for Django trunk)
This commit is contained in:
commit
1d67fee736
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,9 @@
|
|||
django-model-utils
|
||||
==================
|
||||
|
||||
.. image:: https://secure.travis-ci.org/carljm/django-model-utils.png
|
||||
:target: http://travis-ci.org/carljm/django-model-utils
|
||||
|
||||
Django model mixins and utilities.
|
||||
|
||||
Installation
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ class AbidingManager(PassThroughManager):
|
|||
class Dude(models.Model):
|
||||
abides = models.BooleanField(default=True)
|
||||
name = models.CharField(max_length=20)
|
||||
has_rug = models.BooleanField()
|
||||
has_rug = models.BooleanField(default=False)
|
||||
|
||||
objects = PassThroughManager(DudeQuerySet)
|
||||
abiders = AbidingManager()
|
||||
|
|
|
|||
Loading…
Reference in a new issue