Questions tagged [inlines]
55 questions
1
vote
0 answers
Django admin export model with inlines to csv
I try to find a way to export a model with inlines to csv with a button or action in django admin. Has anyone done this before?
I've already tried to export with django_import_export but i haven't found a way to get the content of the inlines.
The…

akephalos
- 13
- 3
1
vote
3 answers
WPF C# get the size and position of inline element of a TextBlock
I use this example ( https://siderite.dev/blog/how-to-draw-outlined-text-in-wpf-and.html ) for add outline to a text in a TextBlock. However this example don't support Inlines.
I try to add this ability modifying the OnRender and I iterate the…

user2272143
- 469
- 5
- 22
1
vote
0 answers
Django tests admin forms inlines
I've an admin form for a job offer.
To see all job responses for that offer, my form looks like this :
class JobOfferAdminDisplayable(BaseTranslationModelAdmin):
model = JobOffer
inlines = [JobResponseInline,]
class…

AntoineLB
- 482
- 3
- 19
1
vote
1 answer
Missing inlines in Django Admin
See below for models.py/admin.py
When I try to change or add a FashionMaleModel, the inlines don't appear, but they do in FashionFemaleModel. If I change the order in which the admin sites are registered, putting Male below Female, then the inlines…

Lexo
- 470
- 4
- 20
1
vote
1 answer
Django admin - saving inlines overriding save_formset
I'm relatively new to django (1.8) and have read around this issue which all points to overriding the save_formset function as per this link
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_formset
Had…

Jag Singh
- 95
- 2
- 11
1
vote
0 answers
Best Way to create form with "inlines" subforms on "non" admin page?
For a new project, I would like to have some features of the admin django project in my front application.
Is there some modules/snippets ready to use to have inlines features of the django admin, without django admin.

Thomas PAPIN
- 41
- 1
- 3
1
vote
1 answer
Registering the same model in different configurations for different apps with Django admin
I have a rather large CMS with many modules and am regulating access with Django permissions. Each app has a UserProfile model with a User object as a ForeignKey. I want to be able to allow easy lookup and creation of UserProfile objects within…

Árni St. Steinunnarson
- 1,580
- 11
- 20
1
vote
1 answer
wpf: checking how many components are inside of a Span?
I have WPF Span that is used as a source to a TextBlock. I am doing some tests and it would be very helpful to know in code how many of which type of component is inside of the Span.
For example, at one point I insert a new Bold() into the span's…

bluebit
- 2,987
- 7
- 34
- 42
1
vote
1 answer
"reverse editing" of generic inlines in django admin
I have a django model named Event with a generic inline relation to Relationship, like this:
# models.py
class Person(models.Model):
...
class Role(models.Model):
...
class Event(models.Model):
...
class Relationship(models.Model):
…

user1415785
- 342
- 4
- 13
0
votes
1 answer
timestamp filtering in the admin for an inlines
I am trying to manage the admin console.
I have two models, a venue and an event: events can happen at venues and events have a timestamp.
In my admin console I have added the events to be listed in the venues admin by using inlines.
However I…

Douglas Kastle
- 699
- 3
- 9
- 23
0
votes
1 answer
How to set for m2m-field different querysets for each inline object?
So I have a model that is shown in inline form.
That model have ManyToManyField.
Imagine that there are several inline-objects that are already created.
The problem is how to show different querysets of available objects in my m2m-field based on…

alTus
- 2,177
- 1
- 14
- 23
0
votes
0 answers
Get FK of previous formset and pass into the Next one
I'm Working on a project and i'm trying to make a product variation,
I have a Product, a Color Variation (FK=Product) and a Size Variation (FK=Color Variation)
I'm using inline formsets to acomplished that, but when i save more then one Color…
0
votes
0 answers
Django mistakes a custom button in list display as a non-existing field in admin.TabularInline
Here is how my model and admin looks like:
Model
class Event(models.Model):
id = models.AutoField(primary_key=True)
title = models.CharField(max_length=120)
description = models.TextField(default="", blank=True)
start =…
0
votes
1 answer
data of foreign keys are not saving in django admin nested inlines
I'm trying to build a list of replicable fields where the order can be interchanged.
To do so I've built three different models Multicap Multitext Multimg which are Inlines of the model Multis which is an Inline of the model Delta.
I'm using…

Lorenzo Scodeller
- 65
- 8
0
votes
1 answer
How to Auto Invite all users of selected Group using Django admin inlines form?
I am working on an application where currently, I have
1) Staff Model is connected to User model via OneToOne Relationship and can have more than one Group.
2) Meeting model can also assigned to many Group.
3) RSVPinline is a part with…

Sark
- 299
- 2
- 21