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 5929449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:25:22+00:00 2026-05-22T14:25:22+00:00

I am working on a Django somewhat e-commerce project, where, briefly, I have both

  • 0

I am working on a Django somewhat e-commerce project, where, briefly, I have both a Customer and a Merchant model. The Merchant model is associated with a MerchantStore model which is somehow “complicated”, having a plethora of m2m and foreign key relationships to various models.

Following the solution in this post and having not enough “time” to make a custom implementation, I decided to let each Merchant be a “stuff member” and customize his store through the admin interface. Of cource I created a new group with the appropriate permissions.

However, some questions arise:

1) Is this considered harmful? Are there any security threats associated?

2) Isn’t this the best way to do it if you have not enough time anyway?

  • 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-05-22T14:25:23+00:00Added an answer on May 22, 2026 at 2:25 pm

    No, I would not consider this harmful.

    The “Zen of Admin” as described in Apress’s djangobook seemed to imply an assumption of trust as part of the admin’s “philosophy”, and paired with the often-repeated “admin is not your app” advice, I too was scared at first and think the Django documentation could point out intended, viable use cases.

    Please see my almost identical question Django AdminSite/ModelAdmin for end users?

    From Jordan’s answer (who I gave the bounty):

    There is nothing inherently special
    about admin. It behaves just like any
    other view. So if it is using
    permissions to determine access (for
    example, if you set a user’s .is_staff
    to True but give them access only to
    specific permissions) then it will be
    equally secure to any view you might
    create that uses permissions to
    determine access.

    …

    The people who wrote
    django.contrib.admin did not write it
    with the assumption that anyone with
    an is_staff = True could be trusted as
    much as a superuser, or was stupid
    enough to never take a look at the
    source code of a web page. Although
    writing your own views is encouraged,
    it is still a robust interface.

    Also note Django’s relatively recent security update http://www.djangoproject.com/weblog/2010/dec/22/security/
    regarding querystring parameters in object lists.

    Such an update (quote: “an attacker with access to the admin […]”) is a clear indication that the admin’s implementation of the permission system is being constantly scrutinized.

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

Sidebar

Related Questions

I have been trying to get xapian working django haystack for a project im
I'm working in django project. I have 1 postgresql sql file that need to
I am working on a Django application which allows a user to upload files.
I m working on django view.I m posting a form which has a param
I'm working with Django on Linux and I have an application that integrates with
I'm currently working with django generic views and I have a problem I can't
I'm currently working with django-nani to enable translated models on a project. Many of
I've spent a lot of time working in Django, and have grokked the framework
I have an extended UserProfile model in django: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True)
I started working on Django 1.0 Web Site Development and have gotten my server

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.