Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

code field can now be longer, added AUTHORS file, version bump to 0.1.1

  • Loading branch information...
commit 2f8581d94cfbc99b5ade38112fe0caa73266c2dd 1 parent 691dcb0
@stefanfoulis stefanfoulis authored
View
2  AUTHORS
@@ -0,0 +1,2 @@
+Divio Gmbh (www.divio.ch)
+ - Stefan Foulis
View
1  MANIFEST.in
@@ -1,3 +1,4 @@
include metadata.py
include README
+include AUTHORS
recursive-include contentblock/locale *
View
3  README
@@ -13,3 +13,6 @@ In Admin create a Content block and give it a codename, e.g 'myprettyblock'
In your template:
{% load contentblock_tags %}
{% contentblock 'myprettyblock' %}
+
+
+http://github.com/divio/django-contentblock/
View
2  contentblock/__init__.py
@@ -1 +1 @@
-__version__ = '0.1.0'
+__version__ = '0.1.1'
View
4 contentblock/migrations/0001_initial.py
@@ -22,7 +22,7 @@ def forwards(self, orm):
# Adding model 'ContentBlock'
db.create_table('contentblock_contentblock', (
- ('code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=16, primary_key=True, db_index=True)),
+ ('code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255, primary_key=True, db_index=True)),
('name', self.gf('django.db.models.fields.CharField')(default='', max_length=255, blank=True)),
))
db.send_create_signal('contentblock', ['ContentBlock'])
@@ -49,7 +49,7 @@ def backwards(self, orm):
},
'contentblock.contentblock': {
'Meta': {'object_name': 'ContentBlock'},
- 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16', 'primary_key': 'True', 'db_index': 'True'}),
+ 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'primary_key': 'True', 'db_index': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'})
},
'contentblock.contentblocktranslation': {
View
2  contentblock/models.py
@@ -5,7 +5,7 @@
from django.utils.translation import ugettext_lazy as _
class ContentBlock(models.Model):
- code = models.CharField(max_length=16, unique=True, db_index=True, primary_key=True)
+ code = models.CharField(max_length=255, unique=True, db_index=True, primary_key=True)
name = models.CharField(max_length=255, blank=True, default='')
class Translation(TranslationModel):
text = PlaceholderField(slotname='contentblock_text',
Please sign in to comment.
Something went wrong with that request. Please try again.