lingo: don't use ckeditor for invoices cells title (#10350)
This commit is contained in:
parent
0ae0e75e53
commit
1b10f83a76
|
@ -0,0 +1,26 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('lingo', '0015_auto_20160309_2150'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='activeitems',
|
||||
name='title',
|
||||
field=models.CharField(max_length=200, verbose_name='Title', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='itemshistory',
|
||||
name='title',
|
||||
field=models.CharField(max_length=200, verbose_name='Title', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -35,8 +35,6 @@ from django.utils import timezone
|
|||
from django.core.exceptions import PermissionDenied
|
||||
from django.utils.http import urlencode
|
||||
|
||||
from ckeditor.fields import RichTextField
|
||||
|
||||
from combo.data.models import CellBase
|
||||
from combo.data.library import register_cell_class
|
||||
from combo.utils import NothingInCacheException, sign_url
|
||||
|
@ -355,7 +353,7 @@ class LingoBasketLinkCell(CellBase):
|
|||
|
||||
class Items(CellBase):
|
||||
regie = models.CharField(_('Regie'), max_length=50, blank=True)
|
||||
title = RichTextField(_('Title'), blank=True)
|
||||
title = models.CharField(_('Title'), max_length=200, blank=True)
|
||||
|
||||
user_dependant = True
|
||||
template_name = 'lingo/combo/items.html'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% if title %}<h3>{{ title|safe }}</h3>{% endif %}
|
||||
{% if title %}<h2>{{ title|safe }}</h2>{% endif %}
|
||||
<div>
|
||||
{% if items %}
|
||||
<table class="invoices">
|
||||
<thead>
|
||||
|
@ -40,3 +40,4 @@
|
|||
{% else %}
|
||||
{% trans "No items yet" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue