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

  • SEARCH
  • Home
  • 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 8032913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:32:07+00:00 2026-06-05T01:32:07+00:00

I know that property() is a built-in function in Python, but I want to

  • 0

I know that property() is a built-in function in Python, but I want to name a model class as Property. Something simple like this:

class Property(models.Model):
    name             = models.CharField(max_length=135)
    owner            = models.ForeignKey(User, related_name='properties_from_owner')
    address_line_one = models.CharField(max_length=135)
    address_line_two = models.CharField(max_length=135, blank=True)
    city             = models.CharField(max_length=135)
    state            = models.CharField(max_length=135)
    zip_code         = models.CharField(max_length=135)

Should I call the class Property or Property_? Now I know Python is case-sensitive, but the reason I ask is because in Django the Property model class is identified as myapp.property.

In other models that relates to Property I added a _ to the fields like this

class UserProfile(models.Model):
    user      = models.OneToOneField(User, related_name='userprofile_from_user')
    property_ = models.ForeignKey(Property, related_name='userprofiles_from_property')
  • 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-05T01:32:08+00:00Added an answer on June 5, 2026 at 1:32 am

    property is not a keyword but a function. You could overwrite it if you want (while making sure you don’t mix up the two later in the file.

    In a situation where no mix-up is possible, I see no reason not to do it.

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

Sidebar

Related Questions

I know that I can iterate over an object's properties like this: for (property
I know that component-model indicates whether a property has a default value or not,
This is a simple one (I think). Is there a system built in function,
I know that a style can be inherited in android via the parent property
How do you know if a value was passed in on a property that
I know that != is not equal, but what does it mean when you
I know that some of the Microsoft employees are members of StackOverflow like the
I know that an invalid pointer leads to undefined behaviour but how does free
My day to day work flow is something like this: acquire raw data (~50GB)
I know of @staticmethod , @classmethod , and @property , but only through scattered

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.