Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8895663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:50:28+00:00 2026-06-14T23:50:28+00:00

Um bit confused about Django’s ModelAdmin section. In order to customized the context we

  • 0

Um bit confused about Django’s ModelAdmin section. In order to customized the context we must call the change_view method . I cannot understand in what way the method getting called by Admin Class. Is it an instance method? Can anyone give me an explanation. I have gone through the documentation as well but I was unable to get a clear view. Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:50:30+00:00Added an answer on June 14, 2026 at 11:50 pm

    An instance method (as apposed to a static method) is one who’s result depends on the state of the specific object it’s called on. (A static method gives the same result for any object of it’s class).

    Have a look at the change_view() method in django.contrib.admin.options.ModelAdmin. This method uses many properties of the object to produce a return.

    I guess, since you’re overiding it, you could rewrite it so that it was effectively a static method, but I’m pretty sure that would break stuff. You need to include a call to super(MyModelAdmin, self).change_view().

    Maybe have a look at the python docs for more info on overriding methods.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a bit confused about overriding vs. hiding a method in C#. Practical
So, Im learning django from djangobook.com and a bit confused about the project skeleton
I'm a bit confused about groovys method overloading behavior: Given the class and tests
A bit confused about Ruby's initialize method. Why does not it return my value,
I'm a bit confused about the size of my App! The folder and all
I am a bit confused about the 'rules' of when a TextView element displays
Perhaps I'm a bit confused about when to use the waitForPageToLoad command, but what
I'm a bit confused about how getters and setters in JPA annotated POJO classes
I'm a bit confused about how many controllers I need, and when I can
I'm a bit confused about inheritance under sqlalchemy, to the point where I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.