#ARC-13 Fixes

remotes/origin/PR-39
ArturBaybulatov 10 years ago
parent 6309168666
commit 3814366711
  1. 2
      archilance/settings/base.py
  2. 2
      projects/forms.py
  3. 2
      projects/templates/project_detail.html
  4. 4
      projects/templates/project_filter.html

@ -12,7 +12,7 @@ SECRET_KEY = 'vb6@b9zj7^f!^+x*e8=e!oundyu1!e*&0i(3gu2xwo4%fx4h&n'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True # Show debug info in templates. See `projects/templates/project_filter.html`
TEMPLATE_DEBUG = False # Show debug info in templates. See `projects/templates/project_filter.html`
ALLOWED_HOSTS = []

@ -173,7 +173,7 @@ class RealtyForm(forms.ModelForm):
if self.data.get('extra_fields'):
raise forms.ValidationError('Это поле обязательно')
else:
if not self.instance.pk:
if self.instance.pk:
name = self.instance.name
else:
name = 'Новый объект %s' % util.random_ident(length=20)

@ -101,7 +101,7 @@
<div class="col-lg-10 col-lg-offset-1">
<p class="textProIn">
{{ project.text }}
{{ project.text|linebreaksbr }}
</p>
</div>

@ -76,7 +76,7 @@
<div class="resSearchF1">
<div class="col-lg-3">
<p class="titleResF1">Расширенный поиск</p>
<p class="titleResF1">Расширенные поля</p>
<button class="resButtonF1">
<span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span>
</button>
@ -184,7 +184,7 @@
Объект "{{ proj.realty.name }}"
</li>
</ul>
<p class="textPro">{{ proj.text }}</p>
<p class="textPro">{{ proj.text|linebreaksbr|truncatechars:300 }}</p>
{% if TEMPLATE_DEBUG %}
<pre><!--

Loading…
Cancel
Save