something__null=True On 07/07/2014 6:31 am, "Utkarsh Dixit" <[email protected]> wrote:
> I have a datetime field in my model. Initially when an object is created > of this model the datetime field is set as NULL (I've defined Null=True and > blank=True) > > Now I want to change make a query which filters all the objects having > Null in this field.. and changing their datetime to current datetime. The > latter part I can manage (using python code), but Is it possible to make > such queries such as modelName.objects.field(date = "") ?? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/aa74e02d-0b67-4661-9ff9-113217bc7d11%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/aa74e02d-0b67-4661-9ff9-113217bc7d11%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHqTbjnNGAKbkThZt5_ZUSXiXN3%3DorqW7djOiFn07Fr9f49fxQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

