On Oct 4, 2017 4:36 AM, "Fellipe Henrique" wrote:
I read the docs, but doesn't work for me... still delete the record... I
looking something directly to model, not using view... there's any way to
do that?
What exactly did you "do"? The on_delete keyword is applied at the model
level, not the v
I would like to update many model instances at a time in the database.
If I could select all such instances using a single query and have the
*same* new field value across all instances I could write code like:
def reset_choices(question: Question):
Choice.objects.filter(question=question).up
On October 2, 2017 9:55:55 AM CDT, Kishore Srinivas
wrote:
>I want to make a chat system in Django, but all those channel stuffs
>looks
>difficult , so are there any other simpler way to implement a chat
>system,
>thanks
You could have each client poll for new messages using good old http g
Hi.
I'm not sure that Django would be suitable for such an application.
Django heavily relies on standard http request-response cycle and I would
imagine that something like video chat requires more persistent connections
and Django doesn't excel in those.
30.9.2017 1.33 "Shazia Nusrat" kirjoi
Hi Felipe,
I found this question on Stack Overflow, which seems to provide some insight on
how to accomplish what you want.
https://stackoverflow.com/questions/4825815/prevent-delete-in-django-model
Basically, you need to override the delete method on the model and on the
QuerySet of the model’s
I read the docs, but doesn't work for me... still delete the record... I
looking something directly to model, not using view... there's any way to
do that?
T.·.F.·.A.·. S+F
*Fellipe Henrique P. Soares*
e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
*Fedora Ambass
Hello everybody,
I am new developer in python/django developer. Now i am start a new project
in Django. So Please i have a new idea in my new project.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop rec
On Oct 2, 2017 1:53 PM, "Alexey Lozickiy"
wrote:
Hi all,
Why is it so that QueryDict for PY3 handles input query string different
from PY2 (part of __init__ of QueryDict from Django 1.11.5):
if six.PY3:
if isinstance(query_string, bytes):
# query_string normally contains URL-encoded
I’m using inlineformsets for an Image Model in combination with a Product
Model.
For the Image Model (using javascript):
1) a remove/delete button will be available to remove an image; the image
can be remove not only on edit, but also on creation(the use upload the
image, but before savin
9 matches
Mail list logo