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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:25:50+00:00 2026-05-10T23:25:50+00:00

I have an Auction model with several attributes, two of which are current_auction:boolean and

  • 0

I have an Auction model with several attributes, two of which are current_auction:boolean and scheduled_start:datetime. How can I make the boolean (false by default) become true when the scheduled_start becomes the current time? Please tell me if you need more information. I’m assuming that I will need to use script/runner, but have no experience with it.

  • 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. 2026-05-10T23:25:51+00:00Added an answer on May 10, 2026 at 11:25 pm

    I wouldn’t store the current_auction as a property. Current_auction is rather a state that depends on the scheduled_start time vs. the current time. Don’t put it in the database, but rather add it as a method on your model that compares the scheduled_start with the current time and returns true/false based on the calculation.

    If you need to select based on whether it is current or not, use selection logic that depends on the scheduled_start time rather than current/not current.

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

Sidebar

Related Questions

I want to model an activity, where there can be two several initiating events.
I have a model class Action that get's extended by several other classes. I
how can I jump to another action in controller? I have form and several
I want to create a custom modelbinder which validates the bounded model. I have
I have a User model that, in my mind, has two show actions: A
I have a page which lists several messages, and each of these messages has
Hopefully a simple question. I have several models, two of them, :users and :songs
I have a Search Edit view which is strongly typed to my Search model
I have a model, smth like this: class Action(models.Model): def can_be_applied(self, user): #whatever return
I am working on an auction web application. Now i have a table with

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.