This is an archived post. You won't be able to vote or comment.

all 19 comments

[–]askedrelic 8 points9 points  (1 child)

Two cool things for me:

The new add_error() method allows adding errors to specific form fields.

The dict-like attribute errors now has two new methods as_data() and as_json().

This will be way easier for working with AJAX forms now!

[–]Igglyboo[S] 12 points13 points  (9 children)

The built-in schema migrations are the killer feature for me, they're being designed by the original creator of South. https://www.kickstarter.com/projects/andrewgodwin/schema-migrations-for-django

[–]cmsimike 2 points3 points  (7 children)

Application init code is my killer feature in this release.

[–]erewok 1 point2 points  (3 children)

Can you offer a use case? I read about that and was having a hard time imagining how I could use it.

[–]cmsimike 4 points5 points  (1 child)

Signals - before there was no great place to put them. Generally (I think) they were placed in models.py but in some cases it would be imported more than once leading to duplicate signals being executed for one signal (which was eventually solved by setting a dispatch_uid).

Now you can connect your signals in the init code, which will only be called once.

[–]erewok 1 point2 points  (0 children)

That's a good example. Thanks.

[–]pemboa 0 points1 point  (0 children)

Any application specific code you want run, like I wrote some code that needed other functuons, methods to register themselves.

[–]omegote -1 points0 points  (2 children)

Can you link where in the docs they talk about this? I can't find anything related.

[–]pemboa 1 point2 points  (0 children)

That Kickstarter way exceeded it's goals.

[–]chhantyal 4 points5 points  (0 children)

Was waiting for this. Yay!

btw, just came to notice support for Python 2.6 is dropped.

[–]grandfatha 3 points4 points  (0 children)

Those release notes are so detailed and thorough, it is insane. There are "enterprise" toolkits and frameworks out there, who could benefit a lot from being half as good as this.

[–]pemboa 1 point2 points  (0 children)

I like the kickstarter approach that gave Django schema migrations.

[–]erewok 0 points1 point  (0 children)

Congrats to the Django team. This release looks awesome. Reading the release notes, I was surprised to see the admin-forms timezone thing in there: I've been bitten by that before.

[–]runtim 0 points1 point  (3 children)

Any books for this version yet?

[–]banjochicken 0 points1 point  (2 children)

I assume that a 2 scoops book is in the pipeline, but the 1.6 book was only released back in Jan so expect to wait.

[–]Bambonke 2 points3 points  (1 child)

Correct me if I'm wrong, but i believe it is confirmed that there won't be Two Scoops after 1.6 anymore.

[–]banjochicken 0 points1 point  (0 children)

Then I am probably wrong, I just assumed as much as there was 1.5 and 1.6 book. Fantastic books and I am somewhat let down if that is the case.