python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Django admin prepopulated fields and fieldsets
I am using Django 3.2
I have the following model:
class Foo(models.Model):
title = models.CharField()
slug = models.SlugField()
# remaining fields listed below
In Admin manager, I have th...
Homunculus Reticulli
Votes: 0
Answers: 2
Need to populate the Project manager field based on the project select on the Timelog Model using django rest framework
models.py
class User(AbstractBaseUser, PermissionsMixin):
BLOOD_GROUP_CHOICES = (
('a+','A+'),
('a-','A-'),
('b+','B+'),
('b-','B-'),
('ab+','AB+...
vinoth kumar
Votes: 0
Answers: 0
InvalidCursorName : Django Admin error referencing wrong column in ForeignKey
I've setup a relationship using django's ForeignKey against 2 unmanaged tables like so:
class Product(BaseModel):
publish_name = models.CharField(unique=True, max_length=40)
# this works:
...
its30
Votes: 0
Answers: 2
How to add column with drop-down list on Django admin change list template?
I have a TaskRequest model that contains a column named 'owner'. This column contains users from a group named 'owners'.
I want to have an option to select users directly from the change list view wit...
Adrian
Votes: 0
Answers: 1