Is it right to create a custom authentication form.Forms instead of extending the Django AuthenticationForm?
I've been working on my first authentication system using Django and I wanted to make it complete, with field validations, login with email and even send a confirmation email to activate the account (which I haven't done yet). So far, I have made: A small custom user model with email field, an extension of the UserCreationForm to register users using their emails (which works), and finally the main problem, I tried to make an extension of the AuthenticationForm to login users using their emails instead of their usernames, but it doesn't seem to work. First, I tried to overwrite the clean method of the form but it didn't work, then I tried to make a backend.py to overwrite how the authentication system works but it failed and I couldn't understand why, so I created my own form using form.Forms with all the necessary fields and validations and it worked fine. I've heard that it's not a good idea to use form.Forms if I interact with models, but it was the only solution I could think of. Should I try to extend the AuthenticationForm instead of creating a form from scratch? Or is my form fine for the system I want
/r/djangolearning
https://redd.it/10a43cg
I've been working on my first authentication system using Django and I wanted to make it complete, with field validations, login with email and even send a confirmation email to activate the account (which I haven't done yet). So far, I have made: A small custom user model with email field, an extension of the UserCreationForm to register users using their emails (which works), and finally the main problem, I tried to make an extension of the AuthenticationForm to login users using their emails instead of their usernames, but it doesn't seem to work. First, I tried to overwrite the clean method of the form but it didn't work, then I tried to make a backend.py to overwrite how the authentication system works but it failed and I couldn't understand why, so I created my own form using form.Forms with all the necessary fields and validations and it worked fine. I've heard that it's not a good idea to use form.Forms if I interact with models, but it was the only solution I could think of. Should I try to extend the AuthenticationForm instead of creating a form from scratch? Or is my form fine for the system I want
/r/djangolearning
https://redd.it/10a43cg
reddit
Is it right to create a custom authentication form.Forms instead...
I've been working on my first authentication system using Django and I wanted to make it complete, with field validations, login with email and...
10 Tips to Optimize PostgreSQL Queries in Your Django Project
Hi there! Those working with big RDBS might be interested in this new entry on optimizing Django and SQL queries. There is also a jupyter notebook to test the tips linked in the article.
Enjoy!
​
https://blog.gitguardian.com/10-tips-to-optimize-postgresql-queries-in-your-django-project/
/r/django
https://redd.it/10av4y9
Hi there! Those working with big RDBS might be interested in this new entry on optimizing Django and SQL queries. There is also a jupyter notebook to test the tips linked in the article.
Enjoy!
​
https://blog.gitguardian.com/10-tips-to-optimize-postgresql-queries-in-your-django-project/
/r/django
https://redd.it/10av4y9
GitGuardian Blog - Take Control of Your Secrets Security
10 Tips to Optimize PostgreSQL Queries in Your Django Project
Philippe is back, this time joined by Laurent, to reveal their best tips & tricks to make Django and Postgres the best friends in the world.
Need help finding django projects that use asgi
Hi guys , can you please suggest any mature/working projects that use asgi for my reference/learning ? I kinda am stuck trying to decide whether I have to port my work project to asgi from wsgi once we migrate from 2.2 to 3.2. any help is appreciated. Thanks.
/r/django
https://redd.it/10bdnac
Hi guys , can you please suggest any mature/working projects that use asgi for my reference/learning ? I kinda am stuck trying to decide whether I have to port my work project to asgi from wsgi once we migrate from 2.2 to 3.2. any help is appreciated. Thanks.
/r/django
https://redd.it/10bdnac
reddit
Need help finding django projects that use asgi
Hi guys , can you please suggest any mature/working projects that use asgi for my reference/learning ? I kinda am stuck trying to decide whether I...
Exciting news! I have just released a new tutorial series on Youtube, where I walk through the process of building a CV scanning and job-matching web application using Django. In this first tutorial, we will be giving an overview of the project and discussing the main features, functionality,
https://youtube.com/watch?v=ZcY9EILTpYM&feature=share
/r/django
https://redd.it/10bhptt
https://youtube.com/watch?v=ZcY9EILTpYM&feature=share
/r/django
https://redd.it/10bhptt
YouTube
00 Building a CV Scanning and Job Matching Web App with Django Overview Tutorial
In this tutorial, we will be giving an overview of the Django project we built for scanning CVs and matching them with job description keywords. We will be discussing the project's main features, functionality, and the technologies used to build it. By the…
What is so great about HTMX?
I’m curious why many people using Django is suggesting HTMX. What makes HTMX so different than making requests using plain Javascript (event listeners, fetch, etc…)? Not to mention it makes the code difficult to read. I’ve used it in the past, ended up replacing all the functionality with Javascript and I want to know if I’m missing something
/r/django
https://redd.it/10b0uxs
I’m curious why many people using Django is suggesting HTMX. What makes HTMX so different than making requests using plain Javascript (event listeners, fetch, etc…)? Not to mention it makes the code difficult to read. I’ve used it in the past, ended up replacing all the functionality with Javascript and I want to know if I’m missing something
/r/django
https://redd.it/10b0uxs
reddit
What is so great about HTMX?
I’m curious why many people using Django is suggesting HTMX. What makes HTMX so different than making requests using plain Javascript (event...
How do I get the most used choice from my queryset? (Postgres)
I'd like to receive the Max for an aggregated queryset where the modelfield I target is a PositiveSmallIntegerField connected with the Integer Choice class above.
Currently, I've tried it with the standard qs.aggregate(max=Max("label")), but as expected, I've received an error:
1 invalid literal for int() with base 10: 'Positive'
Can somebody help me out with a nice soloution for selecting the most used choice? Thanks in advice
​
/r/django
https://redd.it/10awubw
I'd like to receive the Max for an aggregated queryset where the modelfield I target is a PositiveSmallIntegerField connected with the Integer Choice class above.
Currently, I've tried it with the standard qs.aggregate(max=Max("label")), but as expected, I've received an error:
1 invalid literal for int() with base 10: 'Positive'
Can somebody help me out with a nice soloution for selecting the most used choice? Thanks in advice
​
/r/django
https://redd.it/10awubw
reddit
How do I get the most used choice from my queryset? (Postgres)
I'd like to receive the Max for an aggregated queryset where the modelfield I target is a PositiveSmallIntegerField connected with the Integer...
I have conducted a small research on the prevalent common requirements for Django-related job positions in Bangladesh. My findings are intended to serve as a valuable resource for individuals new to the field. I welcome any suggestions or feedback on how to improve this information.
https://docs.google.com/spreadsheets/d/1uLkCJrMpkHW-STciz0AmW8o_VQloseCWQUw4PmXWmuA/edit?usp=sharing
/r/django
https://redd.it/10b2npw
https://docs.google.com/spreadsheets/d/1uLkCJrMpkHW-STciz0AmW8o_VQloseCWQUw4PmXWmuA/edit?usp=sharing
/r/django
https://redd.it/10b2npw
Google Docs
Common Requirements for Django jobs
Sheet1
Robi Axiata Limited,Hire My Tech,HealthOS,inneed,TechForing,mediusware,BDtask,DivinIT,Common requirements,Out of 8 company required in
B.Sc/M.Sc in CSE or related field from reputed university,Frontend and Backend Architecture Integration, Development…
Robi Axiata Limited,Hire My Tech,HealthOS,inneed,TechForing,mediusware,BDtask,DivinIT,Common requirements,Out of 8 company required in
B.Sc/M.Sc in CSE or related field from reputed university,Frontend and Backend Architecture Integration, Development…
Simple "Frictionless" Authentication that is Secure "Enough"
I'm developing a django app where "frictionless" user authentication is a key selling point. The app is designed to enable group meal planning (e.g. on a vacation). A group leader generates a meal plan, inserts the names of "friends". A link is generated that can be shared outside of the app (e.g. an instant messenger app). Users get the link, and "claim" a user within this list of "friends", and can then participate in the meal planning.
I don't want users to have to authenticate traditionally using email/password or openID etc.. As this doesn't need to be super secure (there is assumed trust within your small group of friends), I still want persistence for the user so they don't always have to find the public link to get back "in".
Does a 3rd party module already exist for something like this?
I'm thinking of just using localStorage to persist the session. If that fails in the browser (disabled, or is cleared), then I could transparently "re-authenticate" the user if they have the same IP address used originally and possibly the same browser User Agent. Failing all that, I could also
/r/django
https://redd.it/10b22ip
I'm developing a django app where "frictionless" user authentication is a key selling point. The app is designed to enable group meal planning (e.g. on a vacation). A group leader generates a meal plan, inserts the names of "friends". A link is generated that can be shared outside of the app (e.g. an instant messenger app). Users get the link, and "claim" a user within this list of "friends", and can then participate in the meal planning.
I don't want users to have to authenticate traditionally using email/password or openID etc.. As this doesn't need to be super secure (there is assumed trust within your small group of friends), I still want persistence for the user so they don't always have to find the public link to get back "in".
Does a 3rd party module already exist for something like this?
I'm thinking of just using localStorage to persist the session. If that fails in the browser (disabled, or is cleared), then I could transparently "re-authenticate" the user if they have the same IP address used originally and possibly the same browser User Agent. Failing all that, I could also
/r/django
https://redd.it/10b22ip
reddit
Simple "Frictionless" Authentication that is Secure "Enough"
I'm developing a django app where "frictionless" user authentication is a key selling point. The app is designed to enable group meal planning...
So i got a python developer interview. What do I prepare?
I got an interview for a 1-2 years of experience required job. Its for python developer and I have some django experience. Im an electrical engineer who has learnt machine learning and python. The company is called “ML sense” so i assume its all related to machine learning. What do I prepare for the interview?
When they called me to schedule the interview, they asked me if Ive worked on AWS. Ive deployed an application on digital ocean before but never ran into AWS other than the digital ocean spaces storage which uses AWS.
/r/django
https://redd.it/10avbou
I got an interview for a 1-2 years of experience required job. Its for python developer and I have some django experience. Im an electrical engineer who has learnt machine learning and python. The company is called “ML sense” so i assume its all related to machine learning. What do I prepare for the interview?
When they called me to schedule the interview, they asked me if Ive worked on AWS. Ive deployed an application on digital ocean before but never ran into AWS other than the digital ocean spaces storage which uses AWS.
/r/django
https://redd.it/10avbou
reddit
So i got a python developer interview. What do I prepare?
I got an interview for a 1-2 years of experience required job. Its for python developer and I have some django experience. Im an electrical...
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/10b9r0f
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/10b9r0f
reddit
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and...
ChatGPT is coming for python devs
Today I met with a coworker to gather requirements for a new geospatial data feed he needed built. The meeting's outcome was a decision to script the process of comparing and merging 30+ CSV files into a single flattened schema for import into a cloud-based data store. Said data store was a non-negotiable constraint that only accepts a single CSV as the input. We've got two python devs in-house and a geospatial platform with python and Jupyter baked in, so python is usually our weapon of choice for scripts like this. I digress...
Based on the complexity of the task and requirements I asked for one day to write and test the script, a second day to test further, and then go-live. He was fine with that but said he wanted to try something first.
A few hours later he walked up to my desk, stuck out his hand and said "It's been nice working with you". I did that thing where you think someone's joking, but then the joke persists a little longer than you expect and you start to think they're serious, only to realize they are in fact joking....sort of.
He goes on to
/r/Python
https://redd.it/10bcjhy
Today I met with a coworker to gather requirements for a new geospatial data feed he needed built. The meeting's outcome was a decision to script the process of comparing and merging 30+ CSV files into a single flattened schema for import into a cloud-based data store. Said data store was a non-negotiable constraint that only accepts a single CSV as the input. We've got two python devs in-house and a geospatial platform with python and Jupyter baked in, so python is usually our weapon of choice for scripts like this. I digress...
Based on the complexity of the task and requirements I asked for one day to write and test the script, a second day to test further, and then go-live. He was fine with that but said he wanted to try something first.
A few hours later he walked up to my desk, stuck out his hand and said "It's been nice working with you". I did that thing where you think someone's joking, but then the joke persists a little longer than you expect and you start to think they're serious, only to realize they are in fact joking....sort of.
He goes on to
/r/Python
https://redd.it/10bcjhy
reddit
ChatGPT is coming for python devs
Today I met with a coworker to gather requirements for a new geospatial data feed he needed built. The meeting's outcome was a decision to script...
ChatGPT-Desktop-Webview GUI app.
Is a Private ChatGPT Desktop Webview app made with QtWebView.
Features:
1. Private doesn't make any connections to Google, Mozilla, or Microsoft, Brave unless you login via Google etc..
2. Light Weight.
3. Page reloading can be done using a simple Right-click Reload if ChatGPT gets stuck/errors out.
4. Zoom in or out to configure text size.
5. Supports back button.
6. User-Agent is adjustable but not implemented by default see source code.
Compiled as a windows executable only using pyinstaller check releases or self compile.
You can Recommend extra features by opening a new issue on Github.
Github Repository Link
/r/Python
https://redd.it/10bijtd
Is a Private ChatGPT Desktop Webview app made with QtWebView.
Features:
1. Private doesn't make any connections to Google, Mozilla, or Microsoft, Brave unless you login via Google etc..
2. Light Weight.
3. Page reloading can be done using a simple Right-click Reload if ChatGPT gets stuck/errors out.
4. Zoom in or out to configure text size.
5. Supports back button.
6. User-Agent is adjustable but not implemented by default see source code.
Compiled as a windows executable only using pyinstaller check releases or self compile.
You can Recommend extra features by opening a new issue on Github.
Github Repository Link
/r/Python
https://redd.it/10bijtd
GitHub
GitHub - 7gxycn08/ChatGPT-Desktop-Webview: Private ChatGPT Desktop Webview app made with QtWebView.
Private ChatGPT Desktop Webview app made with QtWebView. - GitHub - 7gxycn08/ChatGPT-Desktop-Webview: Private ChatGPT Desktop Webview app made with QtWebView.
Is there an equivalent of npmtrends.com but for python packages?
I really like python but other than mouth(youtube) to ear package recommendations and the occasional stackoverflow or github find I have been really struggling to find both popular (that are not obvious) and well-maintained packages and also compare them to other packages.
On the other hand, npm have this amazing website called npmtends which allow comparisons of packages and deeper understanding of the echo system when combined with npm's search and some basic googling...
Is there such a website for python package? what's your routine for finding new packages that are interesting and may or may not be popular?
/r/Python
https://redd.it/10b75mh
I really like python but other than mouth(youtube) to ear package recommendations and the occasional stackoverflow or github find I have been really struggling to find both popular (that are not obvious) and well-maintained packages and also compare them to other packages.
On the other hand, npm have this amazing website called npmtends which allow comparisons of packages and deeper understanding of the echo system when combined with npm's search and some basic googling...
Is there such a website for python package? what's your routine for finding new packages that are interesting and may or may not be popular?
/r/Python
https://redd.it/10b75mh
Reddit
r/Python - Is there an equivalent of npmtrends.com but for python packages?
21 votes and 9 comments so far on Reddit
Best login method for DRF
When using drfjwt do you write your login function or you make use of the provided jwt token login views, and which do you think is more efficient and advisable to use?
“also for those who posts coding related stuffs on IG I’ll love to follow you guys😊 0cisc is my username” .
/r/django
https://redd.it/10bme2f
When using drfjwt do you write your login function or you make use of the provided jwt token login views, and which do you think is more efficient and advisable to use?
“also for those who posts coding related stuffs on IG I’ll love to follow you guys😊 0cisc is my username” .
/r/django
https://redd.it/10bme2f
reddit
Best login method for DRF
When using drf_jwt do you write your login function or you make use of the provided jwt token login views, and which do you think is more...
django-auth-ldap warning
Hey guys, sorry if this isn't the right place to post this.
I have set up an LDAP backend for my organisation's internal website, but it is annoying to constantly receive warnings from it in the logs, particularly this one:
I have it so that on any LDAP login, the LDAP user.set_unusable_password() function is run, so this warning doesn't interest me at all. Is there a way I can specifically prevent this warning from being spammed when tens of people are regularly logging into the dev server, so I can't just turn off debug=True?
/r/django
https://redd.it/10bphpp
Hey guys, sorry if this isn't the right place to post this.
I have set up an LDAP backend for my organisation's internal website, but it is annoying to constantly receive warnings from it in the logs, particularly this one:
WARNING:django_auth_ldap:cn=REDACTED,ou=REDACTED,ou=REDACTED,dc=REDACTED,dc=REDACTED does not have a value for the attribute userPassword I have it so that on any LDAP login, the LDAP user.set_unusable_password() function is run, so this warning doesn't interest me at all. Is there a way I can specifically prevent this warning from being spammed when tens of people are regularly logging into the dev server, so I can't just turn off debug=True?
/r/django
https://redd.it/10bphpp
reddit
django-auth-ldap warning
Hey guys, sorry if this isn't the right place to post this. I have set up an LDAP backend for my organisation's internal website, but it is...
brew
Does anyone know how to solve this problem, I'm wanting to use heroku, but I can't:
To use the Heroku CLI's autocomplete --
Via homebrew's shell completion:
Follow homebrew's install instructions https://docs.brew.sh/Shell-Completion
NOTE: For zsh, as the instructions mention, be sure compinit is autoloaded
and called, either explicitly or via a framework like oh-my-zsh.
2) Then run
$ heroku autocomplete --refresh-cache
OR
Use our standalone setup:
Run and follow the install steps:
$ heroku autocomplete
Bash completion has been installed to:
/home/linuxbrew/.linuxbrew/etc/bash_completion.d
==> Summary
🍺 /home/linuxbrew/.linuxbrew/Cellar/heroku/7.67.1: 22,567 files, 85.3MB, built in 6 seconds
==> Running `brew cleanup heroku`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
/r/django
https://redd.it/10bnrin
Does anyone know how to solve this problem, I'm wanting to use heroku, but I can't:
To use the Heroku CLI's autocomplete --
Via homebrew's shell completion:
Follow homebrew's install instructions https://docs.brew.sh/Shell-Completion
NOTE: For zsh, as the instructions mention, be sure compinit is autoloaded
and called, either explicitly or via a framework like oh-my-zsh.
2) Then run
$ heroku autocomplete --refresh-cache
OR
Use our standalone setup:
Run and follow the install steps:
$ heroku autocomplete
Bash completion has been installed to:
/home/linuxbrew/.linuxbrew/etc/bash_completion.d
==> Summary
🍺 /home/linuxbrew/.linuxbrew/Cellar/heroku/7.67.1: 22,567 files, 85.3MB, built in 6 seconds
==> Running `brew cleanup heroku`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
/r/django
https://redd.it/10bnrin
Homebrew Documentation
brew Shell Completion
Documentation for the missing package manager for macOS (or Linux).
URL not working
Hi I am currently finding problems with the following in Django:
urls.py:
from django.urls import path;
from . import views;
urlpatterns = [
path('', views.index, name = "index"),
path('/mail/', views.sendmail, name = 'mail')
\]
​
views.py:
from django import forms;
from django.shortcuts import render;
from django.http import HttpResponseRedirect;
from django.core.mail import send_mail;
from django.urls import reverse;
class PythonForm(forms.Form):
sub = forms.CharField(label = "subject");
name = forms.CharField(label = "name");
email = forms.EmailField();
msg = forms.CharField(label = "message");
def index(request):
return render(request, "site7/site7.html");
def sendmail(request):
if request.method == "POST":
form1 = PythonForm(request.POST);
if form1.is_valid():
n = forms.CharField(label = "name");
email = forms.EmailField();
sub = forms.CharField(label = "subject");
msg = forms.CharField(label = "message");
send_mail(
subject = sub,
message = msg+"\\n Sincerely, \\n"+n,
from_email = email,
recipient_list= 'interest20century@gmail.com'
);
return HttpResponseRedirect(reverse("index"));
else:
return render(request, "site7/site7.html",{
"form": form1
/r/django
https://redd.it/10bu9z0
Hi I am currently finding problems with the following in Django:
urls.py:
from django.urls import path;
from . import views;
urlpatterns = [
path('', views.index, name = "index"),
path('/mail/', views.sendmail, name = 'mail')
\]
​
views.py:
from django import forms;
from django.shortcuts import render;
from django.http import HttpResponseRedirect;
from django.core.mail import send_mail;
from django.urls import reverse;
class PythonForm(forms.Form):
sub = forms.CharField(label = "subject");
name = forms.CharField(label = "name");
email = forms.EmailField();
msg = forms.CharField(label = "message");
def index(request):
return render(request, "site7/site7.html");
def sendmail(request):
if request.method == "POST":
form1 = PythonForm(request.POST);
if form1.is_valid():
n = forms.CharField(label = "name");
email = forms.EmailField();
sub = forms.CharField(label = "subject");
msg = forms.CharField(label = "message");
send_mail(
subject = sub,
message = msg+"\\n Sincerely, \\n"+n,
from_email = email,
recipient_list= 'interest20century@gmail.com'
);
return HttpResponseRedirect(reverse("index"));
else:
return render(request, "site7/site7.html",{
"form": form1
/r/django
https://redd.it/10bu9z0
How to deny user A from seeing content meant for user B
Hello!
I am following along Dennis Ivy's tutorial "Django To Do List App With User Registration & Login" (amazing content btw, definitely recommend for django beginners).
To give some context before my question - the project is set up so that each user has their to do list which is visible only for them:
class TaskListView(LoginRequiredMixin, ListView):
model = Task
contextobjectname = 'tasks'
def getcontextdata(self, kwargs):
context = super().getcontextdata(kwargs)
context'tasks' = context'tasks'.filter(user=self.request.user)
context'count' = context'tasks'.filter(completed=False).count()
return context
There is one thing though that wasn't properly solved - let's say we have 2 users: User A and User B. If I am logged in as User A, I can still access the
/r/django
https://redd.it/10bnj6t
Hello!
I am following along Dennis Ivy's tutorial "Django To Do List App With User Registration & Login" (amazing content btw, definitely recommend for django beginners).
To give some context before my question - the project is set up so that each user has their to do list which is visible only for them:
class TaskListView(LoginRequiredMixin, ListView):
model = Task
contextobjectname = 'tasks'
def getcontextdata(self, kwargs):
context = super().getcontextdata(kwargs)
context'tasks' = context'tasks'.filter(user=self.request.user)
context'count' = context'tasks'.filter(completed=False).count()
return context
There is one thing though that wasn't properly solved - let's say we have 2 users: User A and User B. If I am logged in as User A, I can still access the
/r/django
https://redd.it/10bnj6t
reddit
How to deny user A from seeing content meant for user B
Hello! I am following along Dennis Ivy's tutorial "Django To Do List App With User Registration & Login" (amazing content btw, definitely...
Django lists with models
Hi! I'm currently doing a course on Django and at the same time doing practice projects to learn the methods taught on the course. I have now learnt about models and I have one model called "Customer" which surprise surprise has customers in it. My app should log gym visits of these customers and that would be done with pythons datetime.now(), is it possible to include a list for the customer object that would update each visit to the object/model. So that it would be for example:
Customer:
name = "Mr X"
age="15"
visits=[01/02/2023, 01/05/2023, 01/08/2023\]
and then you could append these dates to this customer's model whenever he logged into the gym. Or what would be the best way to implement something like this?
/r/django
https://redd.it/10buss7
Hi! I'm currently doing a course on Django and at the same time doing practice projects to learn the methods taught on the course. I have now learnt about models and I have one model called "Customer" which surprise surprise has customers in it. My app should log gym visits of these customers and that would be done with pythons datetime.now(), is it possible to include a list for the customer object that would update each visit to the object/model. So that it would be for example:
Customer:
name = "Mr X"
age="15"
visits=[01/02/2023, 01/05/2023, 01/08/2023\]
and then you could append these dates to this customer's model whenever he logged into the gym. Or what would be the best way to implement something like this?
/r/django
https://redd.it/10buss7
Proxy Model
I've a model "Approval" and its inherited model "ApprovalType" where i have put proxy = True. In the Approval model I've this "type":
so when I'm creating the entries in the model using
/r/django
https://redd.it/10blk9u
I've a model "Approval" and its inherited model "ApprovalType" where i have put proxy = True. In the Approval model I've this "type":
type = models.CharField(max_length=30)so when I'm creating the entries in the model using
Approval.objects.create() my manager has asked me to (call the proxy model) or (create) the entries without actually putting type="abc" in the create(). I don't know how to this. please help me out on this/r/django
https://redd.it/10blk9u
reddit
Proxy Model
I've a model "Approval" and its inherited model "ApprovalType" where i have put proxy = True. In the Approval model I've this "type": `type =...