set school year and change boolean to False when school year is not active

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

set school year and change boolean to False when school year is not active

Rain
Hi Guys!! Hope Fully someone can help me any hint or answer really appreaciated..
ireally stuck here in a couple of days now.
My Problem is i want to set a school year using
start_year and end_year field then when school year end  this would automatically in_active
for example
start_year: 2019-01-01
end_year: 2020-01-01
active_year: True

then when 2020-01-01 ends
the boolean will automatically change the status to
active_year:False

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: set school year and change boolean to False when school year is not active

James Gutu
It depends what you are trying to achieve.
What do you mean by "then when school year end  this would automatically in_active"?
Do you need to determine start_date <= self.end_year only when saving or you need to check everyday to see if datetime.now() > self.end_year?

On Thu, Oct 17, 2019 at 4:27 PM Rain <[hidden email]> wrote:
Hi Guys!! Hope Fully someone can help me any hint or answer really appreaciated..
ireally stuck here in a couple of days now.
My Problem is i want to set a school year using
start_year and end_year field then when school year end  this would automatically in_active
for example
start_year: 2019-01-01
end_year: 2020-01-01
active_year: True

then when 2020-01-01 ends
the boolean will automatically change the status to
active_year:False

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com.


--

--
Regards,
James Gutu
Mobile: +447368461508
Skype: jmgutu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOnWGOLqLHhZeo9brsWuVNipaOX3yyxuW%2BN22tq7xbe_XEg7hA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: set school year and change boolean to False when school year is not active

Rain
Hello!. thanks for your help..
what i want to achieve is ti check if end year is already meet.
then if school year already ended. The field would be inactive or the boolean True would be False.
if the set year already passed.

On Fri, Oct 18, 2019 at 4:41 AM James Gutu <[hidden email]> wrote:
It depends what you are trying to achieve.
What do you mean by "then when school year end  this would automatically in_active"?
Do you need to determine start_date <= self.end_year only when saving or you need to check everyday to see if datetime.now() > self.end_year?

On Thu, Oct 17, 2019 at 4:27 PM Rain <[hidden email]> wrote:
Hi Guys!! Hope Fully someone can help me any hint or answer really appreaciated..
ireally stuck here in a couple of days now.
My Problem is i want to set a school year using
start_year and end_year field then when school year end  this would automatically in_active
for example
start_year: 2019-01-01
end_year: 2020-01-01
active_year: True

then when 2020-01-01 ends
the boolean will automatically change the status to
active_year:False

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com.


--

--
Regards,
James Gutu
Mobile: +447368461508
Skype: jmgutu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOnWGOLqLHhZeo9brsWuVNipaOX3yyxuW%2BN22tq7xbe_XEg7hA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-q_1cE%2Bpstaxti72smp%3DfEzgGqV0oCbjp14C17x%3DfwnKnhug%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: set school year and change boolean to False when school year is not active

Okware Aldo
hello, 


On Fri, Oct 18, 2019 at 4:49 AM Rain <[hidden email]> wrote:
Hello!. thanks for your help..
what i want to achieve is ti check if end year is already meet.
then if school year already ended. The field would be inactive or the boolean True would be False.
if the set year already passed.

On Fri, Oct 18, 2019 at 4:41 AM James Gutu <[hidden email]> wrote:
It depends what you are trying to achieve.
What do you mean by "then when school year end  this would automatically in_active"?
Do you need to determine start_date <= self.end_year only when saving or you need to check everyday to see if datetime.now() > self.end_year?

On Thu, Oct 17, 2019 at 4:27 PM Rain <[hidden email]> wrote:
Hi Guys!! Hope Fully someone can help me any hint or answer really appreaciated..
ireally stuck here in a couple of days now.
My Problem is i want to set a school year using
start_year and end_year field then when school year end  this would automatically in_active
for example
start_year: 2019-01-01
end_year: 2020-01-01
active_year: True

then when 2020-01-01 ends
the boolean will automatically change the status to
active_year:False

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com.


--

--
Regards,
James Gutu
Mobile: +447368461508
Skype: jmgutu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOnWGOLqLHhZeo9brsWuVNipaOX3yyxuW%2BN22tq7xbe_XEg7hA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-q_1cE%2Bpstaxti72smp%3DfEzgGqV0oCbjp14C17x%3DfwnKnhug%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMEZma-bceR0T3GwULj%3DW3ojs1gyu-qVYXaYgEifoZHiDjMuyw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: set school year and change boolean to False when school year is not active

Rain
Thanks Sir Alot sir ima check for it!

On Fri, Oct 18, 2019 at 9:55 AM Okware Aldo <[hidden email]> wrote:
hello, 


On Fri, Oct 18, 2019 at 4:49 AM Rain <[hidden email]> wrote:
Hello!. thanks for your help..
what i want to achieve is ti check if end year is already meet.
then if school year already ended. The field would be inactive or the boolean True would be False.
if the set year already passed.

On Fri, Oct 18, 2019 at 4:41 AM James Gutu <[hidden email]> wrote:
It depends what you are trying to achieve.
What do you mean by "then when school year end  this would automatically in_active"?
Do you need to determine start_date <= self.end_year only when saving or you need to check everyday to see if datetime.now() > self.end_year?

On Thu, Oct 17, 2019 at 4:27 PM Rain <[hidden email]> wrote:
Hi Guys!! Hope Fully someone can help me any hint or answer really appreaciated..
ireally stuck here in a couple of days now.
My Problem is i want to set a school year using
start_year and end_year field then when school year end  this would automatically in_active
for example
start_year: 2019-01-01
end_year: 2020-01-01
active_year: True

then when 2020-01-01 ends
the boolean will automatically change the status to
active_year:False

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com.


--

--
Regards,
James Gutu
Mobile: +447368461508
Skype: jmgutu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOnWGOLqLHhZeo9brsWuVNipaOX3yyxuW%2BN22tq7xbe_XEg7hA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-q_1cE%2Bpstaxti72smp%3DfEzgGqV0oCbjp14C17x%3DfwnKnhug%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMEZma-bceR0T3GwULj%3DW3ojs1gyu-qVYXaYgEifoZHiDjMuyw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-q_1cQUPGxBfY2k2eWNrx4AU_X_yDFECSU4PEv50sZ2fAFLw%40mail.gmail.com.