passing a parameter through CreateView to a be an initial value in a form
Hey Patric, Have a look at stackoverflow. https://stackoverflow.com/a/60273100/7063031 I used form_valid in the createview to get the form instance field, passed the pk through the URL to the template, then used get_context in the view so the template can get the pk from the URL. You’ll
Re: [ANN] copernic v0.0.0
On Monday, February 17, 2020 at 11:13:38 PM UTC+1, Amirouche Boubekki wrote: > > I am very pleased to announce that I will work on porting my work on a > versioned database (read: scalable wikidata) to Python and Django. > > If you want to know more and follow the development watch this: >
passing a parameter through CreateView to a be an initial value in a form
Hello I am trying to pass a value from a link into CreateView and use that value as an inital value in a form. I am not having much success and am not sure that I am doing this correctly. Here is what I have so far: Link: Circuit Ref: {{ record.id1 }} urls.py path('addXC//',
Re: Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3
بتاريخ الأربعاء، 19 فبراير، 2020 10:51:53 م UTC+3، كتب Ricardo H: > Hi Simon, > > > It was ok on 2.2.6, only on 3.0.3 it fails. > > > I use BigIntegerField because I use it for some calculations after that, but > even if I try with DurationField it doens't assert right. > > > Definitely
Re: Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3
Hello Ricardo, I suggest you follow these docs to submit your bug report and link to this thread. https://docs.djangoproject.com/en/3.0/internals/contributing/bugs-and-features/#reporting-bugs I'd mention that the issue is also present if you use `output_field=DurationField` as
Re: Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working
How can I do ImageField and FileField in crispy forms On Thu, 20 Feb, 2020, 12:53 AM , wrote: > > > Yaa did that still facing issue > > > > *From: *onlinejudge95 > *Sent: *Thursday, February 20, 2020 12:32 AM > *To: *django-users@googlegroups.com > *Subject: *Re: Re: I am filling up the form
Re: Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3
Hi Simon, It was ok on 2.2.6, only on 3.0.3 it fails. I use BigIntegerField because I use it for some calculations after that, but even if I try with DurationField it doens't assert right. Definitely must be caused by this patch, if I can't find another solution, where and how should I
Django: ManyToManyField appears as empty on my template
I'm having an issue displaying a ManyToManyField in a character profile template using Django. The template has to show an avatar, alongside some information about the character, including a list of guilds this character had joined. But, when I try to display that list, it appears as if it is
Re: How to store a boolean expression (parse tree) in a model?
Could you simply make the connector field nullable to express that? Simon Le mercredi 19 février 2020 12:15:32 UTC-5, test a écrit : > > thanks, do you know how i can create custom leaf nodes when using MPTT or > treebeard? > > My parent nodes should have connector types such as AND/OR but the
Re: Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3
Hello Ricardo, This could be a regression caused by a patch addressing a regression in 3.0.3[0]. Did you also notice this behaviour on Django 2.2.x or was this project started from Django 3.0? >From what I can see though I find it strange that the ExpressionWrapper of end_total_time have an
RE: Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working
Yaa did that still facing issue From: onlinejudge95Sent: Thursday, February 20, 2020 12:32 AMTo: django-users@googlegroups.comSubject: Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working The template file
Re: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working
On Wed, Feb 19, 2020 at 11:31 PM wrote: > The template file > > > > > > <*form **method**="post" **novalidate*> > > No action attribute defined here. Where do you expect the data to be sent? > > {% csrf_token %} > > <*div **class**="form-group col-md-4 mb-0"*> > {{
Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3
Hello, after I updated django from 3.0.2 to 3.0.3 the result of the following code has changed when using a MySQL database. It produces a wrong sql query and also the wrong result for "*end_total_time"* attribute. Is this a bug ? also is there any other way to get the wright result using 3.0.3
RE: Re: I am filling up the form but my filled out items are not rendering into database and also the session is not working
The template file