Skip to content

Commit

Permalink
Fixed DB default values
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuluPro committed Dec 15, 2016
1 parent fe77776 commit a13538c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dj_web_rich_object/__init__.py
@@ -1,5 +1,5 @@
"""Reusable app made for handle web rich objects"""
VERSION = (0, 2, 0)
VERSION = (0, 2, 1)
__version__ = '.'.join([str(i) for i in VERSION])
__author__ = 'Anthony Monthe (ZuluPro)'
__email__ = 'anthony.monthe@gmail.com'
Expand Down
25 changes: 25 additions & 0 deletions dj_web_rich_object/migrations/0005_auto_20161215_0835.py
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-12-15 08:35
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('dj_web_rich_object', '0004_auto_20161214_1706'),
]

operations = [
migrations.AlterField(
model_name='webrichobject',
name='author',
field=models.CharField(blank=True, default=None, max_length=100, null=True, verbose_name='author'),
),
migrations.AlterField(
model_name='webrichobject',
name='description',
field=models.TextField(blank=True, default='', null=True, verbose_name='description'),
),
]
4 changes: 2 additions & 2 deletions dj_web_rich_object/models.py
Expand Up @@ -51,8 +51,8 @@ class WebRichObject(models.Model):
base_url = models.TextField(max_length=500, verbose_name=_("Base URL"))

site_name = models.CharField(max_length=200, null=True, blank=True, verbose_name=_("site name"))
description = models.TextField(null=True, blank=True, verbose_name=_("description"))
author = models.CharField(max_length=100, null=True, blank=True, verbose_name=_("author"))
description = models.TextField(null=True, blank=True, default='', verbose_name=_("description"))
author = models.CharField(max_length=100, null=True, blank=True, default=None, verbose_name=_("author"))

create_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
Expand Down

0 comments on commit a13538c

Please sign in to comment.