convert range of date from julian to gregorian date

2018-04-25 Thread sum abiut
Hi , I am trying to convert a range of date from julian to gregorian date here is what i have try stmt=stmt.where(and_(rate.columns.journal_ctrl_num==fund.columns.journal_ctrl_num,fund.columns.account_code==selected_acc,rate.columns.date_entered.between(convert,convert1))) result_proxy=connection.

Re: Django--Making query use part of the matching name

2018-04-25 Thread James Farris
I believe you want to use icontains rather than contains. It’s case insensitive. I’m not sure without using regex it’s possible to return the results based on any character in any order in the search string. > On Apr 25, 2018, at 5:13 PM, shawn...@gmail.com wrote: > > Hello everyone! > > Cu

Django--Making query use part of the matching name

2018-04-25 Thread shawnmhy
Hello everyone! Currently I am working on Django. I defined a 'Search' function in views.py: def search(request): q = request.GET.get("q") if q: ReactResul = Reactionsmeta.objects.filter(id__contains=q) MetaResul = Metabolites.objects.filter(id__contains=q) GeneRe

django.forms -- unable to display default values in form fields for edit form

2018-04-25 Thread Alex Volkov
Hello everyone, I'm having some problem with django.forms edit dialog and I believe it might be a bug in django that's causing this. I created a project with Django 2.0.4 running on Python 3.6.5 with cookiecutter django template. I created an app (survey) then created a form using a model with

Django and Fullcalendar.

2018-04-25 Thread Elias Coutinho
Good afternoon my friends. Anyway, I do not make a living, and someday some day maybe. My knowledge of Django is intermediate so do not be surprised if I make a mistake. I have the FULLCALENDAR project. It is using DRF and ajax for some actions li

Re: database update after paypal payment

2018-04-25 Thread mab . mobile . 01
Hello Michael, I am having the same problem. I have no problems submitting the data from my website to paypal. I am using Django 2.0.x and just need the django IPN-listener code in an easy to understand way. I want to receive data back from paypal IPN and be able to store it in my database ie

Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-25 Thread Jim Illback
I wondered if anyone has had to alter the queryset behind a model form’s foreign key field which presents as a model choice field? Briefly, I have a client attribute table with the foreign key to a chore/time table. For an add of the client attribute table, I want to limit entries to unassigned

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread Jani Tiainen
Hi. Most probably you get there by creating custom template tag and bunch of other code. It would be easier to grasp your idea if you have some kind of an implementation to reference. Or is there something that stops you from proceeding? ma 23. huhtikuuta 2018 klo 12.00 guettli kirjoitti: >

Re: Filter_horizontal, applying filter on the right box - chosen items

2018-04-25 Thread dario . figueira
Hi all, Are you aware of a standard solution that has been added to django in the meanwhile? Or adding Dustin's solution to my code is the way to go? Cheers :) On Wednesday, 6 April 2016 18:57:54 UTC+1, Dustin Dobernig wrote: > > I know this is question is old but I was looking for the solutio

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread 'Anthony Flury' via Django users
Interestingly, I am thinking on something similar too - having a report/notifications/actions view that have an auto generated URL. The idea (on my concept) is that by getting this unique URL via email, a user can access the report/action without needing to actually login - the fact that a user

Re: Django Setup Challenges

2018-04-25 Thread Kamil Dębowski
What is your problem exactly? What have you already done? Do you see some errors in console? W dniu wtorek, 24 kwietnia 2018 13:34:46 UTC+2 użytkownik Nana Kwabena Kwarteng napisał: > > Hi All, > > I'm new here and I'm having getting my django to run... Any help? > -- You received this message

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread guettli
Thank Adrien for sharing your knowledge. Our use cases have some parts that are common and some parts that are distinct. You want actions, I want static attributes. You define them on the model. I use URLs. In my case sometimes there is a 1:1 relationship between URL and model, but sometimes n