Adding an hyperlink to another Model inside Django Admin - django

I have something which sounds trivial but I cant find a way to implement in django admin.
I have a Model which I am showing in my admin. I am using a TabularInline to show another model which refer to the first one.
All I want is a link to click on my current view so I'll go into the TabularInline view only.
The reason I need it is simple. My second model admin registertion also contains another TabularInline to a third model. so I cant see the Inline from the first model.
The Models are pretty simple. I am implementing a Voting system over several cretirias. So I want my Item model admin to show all the users which votes and the final score. But the Vote model breaks down the cretirias that the user votes for.

This answer discusses this in some detail:
Django InlineModelAdmin: Show partially an inline model and link to the complete model
But this is what I use:
https://gist.github.com/3013072

Related

Adding related model in separated page Django Admin

The problem is following:
All fields are not displayed when I add model for related model using TabularInline
but at another side I don't want to use StackedInline, cuz it seems to be not pretty. So, is it possible to use another page to add model for related model, that automatically will be added to corresponding Partner (related model). Maybe is it possible to use StackedInline for one reason and TabularInline to another, or something similar? Or override adding link?
What exactly do I want
Displaying:
Adding:

Django Admin: How to change model name?

I would like to change the model name displayed in admin. The idea is to be able to register filtered versions of the model to the admin view. I know that I can add filter options when viewing the model. I am not interested in doing that.
I don't think using the approach for solving admin plural naming is an option: Django fix Admin plural. I could be wrong. If so, please tell me how this can be done.
I found this approach which seems to be the right solutions: Change 'Change model class name' in Django Admin || Change the 'Change' <h1>. However, I can't make it work. Is it just me not trying hard enough?
It is also an option to make a number of models and then register each of them. However, I will prefer to rename and register filtered versions in admin.
Any suggestions for solving this little issue?

Django Admin Custom Inline Model

My question is about django admin inline model,
in Django admin site the inline model looks like this:
the many to many objects appear in a dropdown.
is there anyway (or a library) to show all the objects in a table and each row with a checkbox so the user could select each object they want?
thank you for helping
sorry about the image quality
I found the answer myself, I change tabular.html template showed all records and added extra js to only send selected rows

Django: Include/Exclude Push/Pull Template for ManyToMany Relationship

I have a many to many relationship in Django where one lesson may be linked to many (~20) objectives. In total there are over 100 objectives that can be selected that are categorised in two ways. The default combobox size make it difficult to select and view the objectives. Due to the nature of the application (curriculum and lesson planning tool) most of the work is done in admin and it would be useful to view the currently selected objectives better.
I would like something that looked like this:
Link if image not shown
but would settle on viewing more fields at once and/or ideally sorted by those fields selected?
I would be grateful for any help, ideas or examples from the more experience Django developers here. Thanks in advance of your time.
Chris
Luckily, a very similar widget is already provided for use in the admin - just set the filter_horizontal attribute in your admin class:
class MyModelAdmin(admin.ModelAdmin):
model = Lesson
filter_horizontal = ('objectives',)
See the docs.

writing a generic listview template to use across different models

I am new to django and am looking for a generic way of displaying all records of a model in a view by writing minimum html.
So ideally what i would like to do is define my model for example customer, add fields like first name, address, credit card no.
Now i would mark which of these fields are to be rendered ( say publicly_visible = false for credit card field). I repeat this for another model like 'products'.
Next i want my view for customer to render a list of all customer records (the credit card column will not be rendered).
I am wondering if there already is a django package which will do this for me?
The other option which i am trying is to try to use a generic listview to do this but not sure how to proceed.
Meet django's "Class Based Views".
You can read the docs here Django Docs on CBV, there are several generic views to accomplish repetitve tasks.
The view you're looking for regarding your question is called ListView.
For others looking for a good solution to generate read-only list views for your models without writing too much code - This did it for me.
https://github.com/miracle2k/django-tables