These are chat archives for django/django

6th
Sep 2017
paveltyurikov
@paveltyurikov
Sep 06 2017 15:08
Hi every one, could anybody help me please, I copy model by
new_instance = old_instance
new_instance.pk=None
new_instance.save()
And I'm not sure, but related_set seems copied too from old_instance
Vishnu Dileesh
@VishnuDileesh
Sep 06 2017 16:26
Hi friends, how can i create a radio button field in django model form?
Kyle Mulka
@mulka
Sep 06 2017 16:36
@VishnuDileesh the widget class is called RadioSelect
Vishnu Dileesh
@VishnuDileesh
Sep 06 2017 16:53
thanks @mulka , but how do i render it in template?
Rafael Canovas
@mstrcnvs
Sep 06 2017 20:28
@paveltyurikov what are you trying to achieve by setting pk to None?
Charles
@Checkroth
Sep 06 2017 23:09

Hi, I'm looking at purchasing https://www.packtpub.com/web-development/django-design-patterns-and-best-practices

But there are almost no reviews. Has anybody read it / would you recommend it?

(Professional django developer, looking for advanced topics and not introductory material
matrixbot
@matrixbot
Sep 06 2017 23:22
@bittner:matrix.org I haven't read it. But the author is a member of the DSF, and you can try the subscription for free for 30 days. Doesn't sound too risky.
Charles
@Checkroth
Sep 06 2017 23:26
Yeah there isn't really an issue for me, more fishing for book recommendations :)
matrixbot
@matrixbot
Sep 06 2017 23:46
@bittner:matrix.org The scoops couple book you probably know. Buy that. They need money for their holidays.
Charles
@Checkroth
Sep 06 2017 23:53
Two Scoops of Django?
matrixbot
@matrixbot
Sep 06 2017 23:59
@bittner:matrix.org Yes. That should cover what a Django Developer needs to know. The rest is in pymust.watch and PEP20. Those are no books, though.