Inline formset for many to many relation

2020-01-24 Thread Suraj
Hello Everyone, I want to inline formset for m2m relationship. Related code looks as follows: models.py ``` class Outcome(models.Model): # some fields # Foreign key is created to make outcomes inline in course form course_outcome = models.ForeignKey("course.Course", on_delete=models.S

Unable to save m2m field in Inline Formset with many to many relation in django CreateView

2020-01-24 Thread Suraj
Hello everyone, I am unable to make it worked. I have two models "Course" and "Outcome". I want to make OutcomeForm form as inline form in CourseForm. My models.py file looks as below: class Outcome(models.Model):# some fields course_outcome = models.ForeignKey( "course.Course", on_delete=

Changing Queryset into String

2020-01-24 Thread Lim Kai Wey
Greetings everyone, I would like to ask if anyone knows how to convert my queryset into string or if there is a better approach to what I am trying to accomplish. In theory, I am trying to assign all the text into a variable and tokenize the whole string so that I can find the top 10 most comm

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Balaji Shetty
Congrats Dear It's not important how many concept you know. It's important regarding your basics for Model, View class and function , Template, Rest API and Admin Basics with User, group Management , with and permission. Most important is Data Base normailZation and Query languages. As you are

Error with running test suite while contributing to django

2020-01-24 Thread Muhammed abdul Quadir owais
Hi , I want help over here ,.. I'm a newbie for django contributions so I got stuck over here... After cloning the django from git hub ( obviously after the action of fork) and running commands (like $ python -m pip install -e /path/to/your/local/clone/django/ and $ python -m pip install -r req

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Денис Асташичев
Try writing a python wrapper for Nomics API. Then do something with it. Don't forget the tests. That should cover quite a bit of areas to demonstrate your knowledge On Fri, 24 Jan 2020, 11:29 Jack Lin, wrote: > Hi Motaz, Aditya, and all. > > Won’t that be too easy? Thinking of something more co

Re: Django and MySQL NDB Cluster

2020-01-24 Thread Victor Guimarães Nunes
Yesterday I figured how to solve this issue using a custom Database backend. I'm posting this here to help anyone have the same problem. 1. Create a new python package for it (I recommend use poetry for it): django-mysql-nosavepoint/ > ├── django_mysql_nosavepoint >

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Jack Lin
Hi Motaz, Aditya, and all. Won’t that be too easy? Thinking of something more complex like something need to include a scraper. But I’m not sure if that can be done In a week. I think I will like to find a complex stocks article. No need to base on programming, maybe just a simple theory that I c

Re: Case-insensitve unique = True

2020-01-24 Thread gaurav jain
Hi, I think you can save a processed version of the text and apply a unique constraint. If you want save the original text then save the non processed test as well. Kind regards Gaurav Jain On Fri, 24 Jan, 2020, 1:34 pm Mike Dewhirst, wrote: > On 24/01/2020 6:12 pm, maninder singh Kumar wrote:

Re: Case-insensitve unique = True

2020-01-24 Thread Mike Dewhirst
On 24/01/2020 6:12 pm, maninder singh Kumar wrote: I wonder at that.  When I develop a model does the CharField have to be specified case insensitive at that level. That is what Simon advised and I think it is exactly what I want. For instance :  A search can be case insensitive and iexact i