P
P
Progrik2011-08-22 10:26:49
Django
Progrik, 2011-08-22 10:26:49

Django: how to make in the admin panel the ability to select multiple objects through selects on a model with a ForeignKey?

I have a Player model and he has Achievements. I need to be able to select several already added achievements through Inline, and not create the same achievements for each player.
Now it looks like this: And I would like it to look like this: How to implement it on Django 1.3? And then nowhere is there anything like it in the docks :(
0_5159d_c4b94b77_L.jpg
0_5159e_f8794ae7_L.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Sokolovsky, 2011-08-22
@Progrik

In theory, you need a different type of relationship, in this case it is ManyToManyField

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question