Ask Your Question
1

Bug: title disappears if your tag is rejected. [patch]

asked 2012-01-27 14:25:01 -0500

brycenesbitt gravatar image

updated 2012-05-01 10:23:14 -0500

Evgeny gravatar image

Bug: title disappears if your tag is rejected.

If one of your tags fails the "use-these-chars-in-tags" check, the title of your question gets erased.

1) Ask question
2) Write a title
3) Put "&" or "%" in a tag name
4) Submit, observe error    "use-these-chars-in-tags".
5) Observe    title is now blank

(I used preformatted text, because on Chrome, number and bullet lists are broken)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-29 01:59:22 -0500

brycenesbitt gravatar image

Solution patch: in writers.py add the following in the case of 'form not valid':

else:
    form.initial['title']= request.POST.get('title')
edit flag offensive delete link more

Comments

thanks, I've fixed this in the repository, will make a new release this week.

Evgeny gravatar imageEvgeny ( 2012-03-05 20:12:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-01-27 14:25:01 -0500

Seen: 126 times

Last updated: Feb 29 '12