Well, I stayed up and hacked around and found a short JQuery option in the
right direction:
https://code.jquery.com/jquery-3.3.1.min.js">
https://code.jquery.com/ui/1.12.1/jquery-ui.min.js">
$(function() {
$("#sortable").sortable({cancel: false});
Thanks Vinicius Assef
--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to
Basically what you need is to store current selections/values in the
session https://docs.djangoproject.com/en/2.0/topics/http/sessions/
Then access the session in the view and redirect accordingly.
def my_
On Tuesday, March 20, 2018 at 4:29:00 PM UTC-4, Abbad yeslem wrote:
>
> Hello,
>
> I am
You are calling save() in parent class. Read more about it here:
https://docs.python.org/3/library/functions.html?highlight=super#super
On 21 March 2018 at 12:52, Utpal Brahma wrote:
> /* also explain super ().save() */
>
> from django.db import models
>
> class
/* also explain super ().save() */
from django.db import models
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField()
def save(self, *args, **kwargs):
do_something()
super(Blog, self).save(*args, **kwargs) # Call the "real"
Hello Anon,
Django doesn't use database level ON DELETE constraints and emulates them
in Python
to dispatch pre_delete/post_delete signals. As long as you're using the ORM
to perform
the deletion you shouldn't encounter constraint violations.
There's a ticket to add support for database level
All:
Yes, this is was identical to GitHub:
https://github.com/django/channels/issues/981.
Upgrading to MIDDLEWARE from MIDDLEWARE_CLASSES solved the problem.
G Broten
On Wednesday, March 21, 2018 at 8:54:47 AM UTC-6, G Broten wrote:
>
> Andrew:
> No, issue 981 wasn't posted by me, but I too
Andrew:
No, issue 981 wasn't posted by me, but I too am using MIDDLEWARE_CLASSES
so this is most likely the same issue.
I'm looking into it.
Thanks,
G Broten
On Tuesday, March 20, 2018 at 4:05:07 PM UTC-6, Andrew Godwin wrote:
>
> Hi - did you also open this issue on GitHub:
>
Hi,
I am learning python by trying to create a small Django app. I may have
found a bug related to Django and/or sqlite3. If you are stackoverflow
folks then my initial post is there:
https://stackoverflow.com/questions/49361834/integrityerror-exception-in-deleteview-cbv
My app really is
I want to integrate AngularJS in my custom password_reset_confirm.html template
in Django. But when I fill out a new password and hit "submit," nothing
happens.
Here's more info in better
formatting:
Hi Bernd,
A bit of this "k anbd drag lines up and down to reposition them" is done by
jQuery UI, in its "Draggable" functionality:
https://jqueryui.com/draggable/#sortable
Not sure if that helps, though, 'cause you could provide functionality to
reorder using plain JS, just reordering divs
Hmmm, my next problem.
I envisage a widget which is kind of like a HTML textarea, but basically
each line would hold the name of a field say, and I'd like a user to be
able to order the lines, not change the text. Basically click anbd drag
lines up and down to reposition them.
I've poked
Actually I stand corrected, no need to build a format all.
*django.forms.fields_for_model* provides just the fields for model and
their widgets. Awesome. Neat and tidy.
On Wednesday, 21 March 2018 13:08:31 UTC+11, Bernd Wechner wrote:
>
> Andréas and Andreas,
>
> I admit I smiled to see Andréas
Thanks heaps Mike.
On Wed, Mar 21, 2018 at 3:21 PM, Mike Dewhirst
wrote:
> On 21/03/2018 1:17 PM, sum abiut wrote:
>
>> Hi,
>> I am planning to build a survey app that allow the administator to add
>> new questioner and the question to be answer by the users.But i am
14 matches
Mail list logo