Glad, you worked it out. You can use them whenever you want. Function based
views require you to write more code but give you more clarity on what's
happening. On the other hand CBV help you keep the codebase cleaner.
At the end of the day, it's you who has to decide what to use.
--
You receiv
Hi
It's great that with 1.11 django.contrib.admin and django.contrib.postgres
have brought the ability to use date_hierarchy with fields from other
connected tables.
I was wondering if the ability to to create a transform on a given table
existed so that fields other than DateField or DateTim
thanks Gourav. I really appreciate your inputs.
On Tue, Oct 3, 2017 at 9:16 PM, Gourav Chawla <
gauravchawla.chawla...@gmail.com> wrote:
> Glad, you worked it out. You can use them whenever you want. Function
> based views require you to write more code but give you more clarity on
> what's happe
There is any way to prevent cascade delete on FK field, without using
signal?
I need to block the Delete process, not to set NULL on field..
Regards!
T.·.F.·.A.·. S+F
*Fellipe Henrique P. Soares*
e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
*Fedora Ambassado
Have you checked the arguments for on_delete on ForeignKey?
https://docs.djangoproject.com/en/1.11/ref/models/fields/#arguments
There’s models.SET_NULL, models.SET_DEFAULT, models.DO_NOTHING, etc…
If you need to prevent someone from deleting something, you should use view
permissions.
From: dj
explicitly define what to do when there is a deletion.
use the "on_delete" parameter of ForeignKey/OneToOneField
on django <=1.11, on_delete is optional, and its default value is CASCADE.
after django >- 2.0, it is mandatory to set "on_delete"
https://docs.djangoproject.com/en/1.11/ref/models/
Yes that method worked. it showed all the physical location where it looked
for the template file. Thanks.
Is there a way to configure the order in which django looks for the
template files?
On Sunday, October 1, 2017 at 12:30:44 AM UTC+5:30, Tim Graham wrote:
>
> I'd temporarily remove the bu
7 matches
Mail list logo