Skip to content

Commit c58c51f

Browse files
committed
Added a migration which captures the added validator for title fields.
- Legacy-Id: 12907
1 parent ffc6beb commit c58c51f

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

changelog

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,86 @@
1+
ietfdb (6.46.0) ietf; urgency=medium
2+
3+
**Name i18n Improvements, tweaks to Group Pages and Account Setup**
4+
5+
This release introduces use of non-ascii names in the name parts of outgoing
6+
emails instead of always using asciified names. It improves the account
7+
setup workflow, improves the ease of editing group attributes and makes it
8+
more apparent which attributes can be edited. It also adds a code quality
9+
assurance tool which makes easy notification on unexpected states available,
10+
and applies it to one difficult-to-debug issue. There are also a number of
11+
bugfixes, as usual. From the commit log:
12+
13+
* Changes to address ease of editing various group attributes, in particular
14+
intended to make it easier to see that you can edit things like the
15+
external/additional URLs:
16+
17+
- Added the ability to edit individual fields in a group's about page, and
18+
added edit buttons for editable fields on the about page, just as for
19+
documents (the ability to edit all editable fields already was available
20+
from the 'Edit group' button on the /group//about/ page).
21+
22+
- Made the tab label for the group-about tab consistently say 'About',
23+
instead of 'Charter' for some groups.
24+
25+
- Shifted the position of the about tab to the start of the tab line.
26+
27+
- Removed the datatracker account requirement information at the top of the
28+
group edit page for users logged in to their account.
29+
30+
- Tweaked the 'Show update' link on the 'Status Update' line.
31+
32+
- Changed the label for the external URLs from 'More Info' to 'Additional
33+
URLs', which was already in use on the edit form.
34+
35+
* Fixed a html issue on the review request page.
36+
37+
* Made some changes to the missing-email submission handling. This may have
38+
fixed the creation of author records containing 'none' email entries, but
39+
as I've not been able to reproduce the issue, this is uncertain.
40+
41+
* Made the logging settings explicit in ietf/settings.py (instead of copying
42+
default then modifying), and added enough surrounding information to make
43+
it possible to read also for people not very familiar with Python's
44+
intricate logging infrastructure. To a large extent to understand myself
45+
how the logging is set up in Django, and where to hook in the affirm()
46+
function.
47+
48+
* Added an affirm($statement) function, which acts like an assert, and
49+
lets us trigger an email message with traceback when the statement to
50+
affirm is False. Use instead of assert if we still want the server to
51+
produce a response, even if something is wrong with the internal state.
52+
53+
* Added a log.affirm() call at the point where we may discover new flawed
54+
document author records. Fixed a place where the generation of
55+
Person.ascii from Person.name wasn't done well.
56+
57+
* Changed the AD email list results from get_group_ad_emails() to make more
58+
sense when the group is an area, not a wg.
59+
60+
* Fixed url lookups for doc.views_doc.document_main() to only use
61+
dotted-path, and removed the doc_view explicit url name. Fixes a 500
62+
error in /submit/status/NNNN/.
63+
64+
* Added explicit charset setting and consistent encoding to several email
65+
paths through the datatracker. After introducing support for non-ascii
66+
names in email addresses, using role.formatted_email() to insert names
67+
into email content doesn't work any more, since uncode names will now be
68+
rfc2047-encoded in formatted_email(). Added another method
69+
role.name_and_email() for this case. Replaced another case of '%s <%s>'
70+
name-and-email formatting with formataddr(). Fixed some tests which did
71+
not send unicode email bodies to the email functions. Fixes issue #2017.
72+
73+
* Added a validator to Document.title to prevent control chars in the title
74+
(this complements a recent cleanup of more than 120 instances of document
75+
titles containing vertical tabs).
76+
77+
* Changed the New Account creation to require a proper name at the same time
78+
as the account password is set, before actually creating the account.
79+
Also tweaked the password strength and confirmation code.
80+
81+
-- Henrik Levkowetz <henrik@levkowetz.com> 23 Feb 2017 13:07:38 -0800
82+
83+
184
ietfdb (6.45.0) ietf; urgency=medium
285

386
**Django 1.10**
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.10.5 on 2017-02-24 02:22
3+
from __future__ import unicode_literals
4+
5+
import django.core.validators
6+
from django.db import migrations, models
7+
8+
9+
class Migration(migrations.Migration):
10+
11+
dependencies = [
12+
('doc', '0019_auto_20161207_1036'),
13+
]
14+
15+
operations = [
16+
migrations.AlterField(
17+
model_name='dochistory',
18+
name='title',
19+
field=models.CharField(max_length=255, validators=[django.core.validators.RegexValidator(message='Please enter a string without control characters.', regex='^[^\x00-\x1f]*$')]),
20+
),
21+
migrations.AlterField(
22+
model_name='document',
23+
name='title',
24+
field=models.CharField(max_length=255, validators=[django.core.validators.RegexValidator(message='Please enter a string without control characters.', regex='^[^\x00-\x1f]*$')]),
25+
),
26+
]

0 commit comments

Comments
 (0)